Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 959 for mymath (0.09 sec)

  1. internal/s3select/sql/value_test.go

    			wantOK: true,
    		},
    		{
    			name: "max",
    			fields: fields{
    				value: []byte(strconv.FormatInt(math.MaxInt64, 10)),
    			},
    			want:   math.MaxInt64,
    			wantOK: true,
    		},
    		{
    			name: "min",
    			fields: fields{
    				value: []byte(strconv.FormatInt(math.MinInt64, 10)),
    			},
    			want:   math.MinInt64,
    			wantOK: true,
    		},
    		{
    			name: "max-overflow",
    			fields: fields{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  2. src/internal/fuzz/encoding.go

    				// or negative zero it is "0" or "-0". For NaN, it is the string "NaN".
    				fmt.Fprintf(b, "%T(%v)\n", t, t)
    			}
    		case float64:
    			if math.IsNaN(t) && math.Float64bits(t) != math.Float64bits(math.NaN()) {
    				fmt.Fprintf(b, "math.Float64frombits(0x%x)\n", math.Float64bits(t))
    			} else {
    				fmt.Fprintf(b, "%T(%v)\n", t, t)
    			}
    		case string:
    			fmt.Fprintf(b, "string(%q)\n", t)
    		case rune: // int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 11K bytes
    - Viewed (0)
  3. src/runtime/minmax_test.go

    // license that can be found in the LICENSE file.
    
    package runtime_test
    
    import (
    	"math"
    	"strings"
    	"testing"
    	"unsafe"
    )
    
    var (
    	zero    = math.Copysign(0, +1)
    	negZero = math.Copysign(0, -1)
    	inf     = math.Inf(+1)
    	negInf  = math.Inf(-1)
    	nan     = math.NaN()
    )
    
    var tests = []struct{ min, max float64 }{
    	{1, 2},
    	{-2, 1},
    	{negZero, zero},
    	{zero, inf},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 01:41:50 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/index.txt

    # Check that standard library packages are cached.
    go list -json math # refresh cache
    env GODEBUG=gofsystrace=1,gofsystracelog=fsys.log
    go list -json math
    ! grep math/abs.go fsys.log
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 11 16:51:38 UTC 2022
    - 229 bytes
    - Viewed (0)
  5. src/math/cmplx/pow.go

    		case r < 0:
    			if i == 0 {
    				return complex(math.Inf(1), 0)
    			}
    			return Inf()
    		case r > 0:
    			return 0
    		}
    		panic("not reached")
    	}
    	modulus := Abs(x)
    	if modulus == 0 {
    		return complex(0, 0)
    	}
    	r := math.Pow(modulus, real(y))
    	arg := Phase(x)
    	theta := real(y) * arg
    	if imag(y) != 0 {
    		r *= math.Exp(-imag(y) * arg)
    		theta += imag(y) * math.Log(modulus)
    	}
    	s, c := math.Sincos(theta)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. src/math/big/rat_test.go

    	if math.Abs(float64(f)) >= math.MaxFloat32 {
    		// Cannot check +Inf, -Inf, nor the float next to them (MaxFloat32).
    		// But we have tests for these special cases.
    		return true
    	}
    
    	// r must be strictly between f0 and f1, the floats bracketing f.
    	f0 := math.Nextafter32(f, float32(math.Inf(-1)))
    	f1 := math.Nextafter32(f, float32(math.Inf(+1)))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 07 00:15:59 UTC 2022
    - 18.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc_test.go

    		delta := div32 - last
    		consume(idx, delta*x)
    		last = div32
    	}
    	consume(n-1, (1-last)*x)
    }
    
    func f64RelDiff(a, b float64) float64 {
    	den := math.Max(math.Abs(a), math.Abs(b))
    	if den == 0 {
    		return 0
    	}
    	return math.Abs(a-b) / den
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 18:17:27 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  8. src/strconv/ftoa_test.go

    	{32, 'g', -1, "32"},
    	{32, 'g', 0, "3e+01"},
    
    	{100, 'x', -1, "0x1.9p+06"},
    	{100, 'y', -1, "%y"},
    
    	{math.NaN(), 'g', -1, "NaN"},
    	{-math.NaN(), 'g', -1, "NaN"},
    	{math.Inf(0), 'g', -1, "+Inf"},
    	{math.Inf(-1), 'g', -1, "-Inf"},
    	{-math.Inf(0), 'g', -1, "-Inf"},
    
    	{-1, 'b', -1, "-4503599627370496p-52"},
    
    	// fixed bugs
    	{0.9, 'f', 1, "0.9"},
    	{0.09, 'f', 1, "0.1"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 24 23:50:20 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  9. src/slices/slices_test.go

    		{x: make([]struct{}, math.MaxInt/6-5), count: 6, want: make([]struct{}, 6*(math.MaxInt/6-5))},
    		{x: make([]struct{}, math.MaxInt/7-6), count: 7, want: make([]struct{}, 7*(math.MaxInt/7-6))},
    		{x: make([]struct{}, math.MaxInt/8-7), count: 8, want: make([]struct{}, 8*(math.MaxInt/8-7))},
    		{x: make([]struct{}, math.MaxInt/9-8), count: 9, want: make([]struct{}, 9*(math.MaxInt/9-8))},
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/package-info.java

    /**
     * Arithmetic functions operating on primitive values and on {@link java.math.BigInteger} and {@link
     * java.math.BigDecimal} instances.
     *
     * <p>This package is a part of the open-source <a href="https://github.com/google/guava">Guava</a>
     * library.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/MathExplained">math utilities</a>.
     */
    @ParametersAreNonnullByDefault
    @CheckReturnValue
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 23 19:57:03 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top