Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,755 for math3 (0.06 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/roundtrip_test.go

    			name: "int32 zero",
    			obj:  int32(math.MinInt32),
    		},
    		{
    			name: "uint32 max",
    			obj:  uint32(math.MaxUint32),
    		},
    		{
    			name: "uint32 zero",
    			obj:  uint32(0),
    		},
    		{
    			name: "int16 max",
    			obj:  int16(math.MaxInt16),
    		},
    		{
    			name: "int16 min",
    			obj:  int16(math.MinInt16),
    		},
    		{
    			name: "int16 zero",
    			obj:  int16(math.MinInt16),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 21:48:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/StatsTest.java

    import static com.google.common.math.StatsTesting.MANY_VALUES_MAX;
    import static com.google.common.math.StatsTesting.MANY_VALUES_MEAN;
    import static com.google.common.math.StatsTesting.MANY_VALUES_MIN;
    import static com.google.common.math.StatsTesting.MANY_VALUES_STATS_ITERABLE;
    import static com.google.common.math.StatsTesting.MANY_VALUES_STATS_ITERATOR;
    import static com.google.common.math.StatsTesting.MANY_VALUES_STATS_SNAPSHOT;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 28.4K bytes
    - Viewed (0)
  3. test/fixedbugs/issue7740.go

    		return
    	}
    	p := 1 - math.Log(math.Abs(ulp))/math.Log(2)
    	if math.Abs(p-prec) > 1e-10 {
    		fmt.Printf("BUG: got %g; want %g\n", p, prec)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 25 18:53:24 UTC 2021
    - 736 bytes
    - Viewed (0)
  4. src/go/importer/importer_test.go

    		}
    		imp := ForCompiler(fset, compiler, lookup)
    		pkg, err := imp.Import("math/bigger")
    		if err != nil {
    			t.Fatal(err)
    		}
    		// Even though we open math/big.a, the import request was for math/bigger
    		// and that should be recorded in pkg.Path(), at least for the gc toolchain.
    		if pkg.Path() != "math/bigger" {
    			t.Fatalf("Path() = %q, want %q", pkg.Path(), "math/bigger")
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 25 21:16:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/PairedStatsTest.java

    import static com.google.common.math.StatsTesting.EMPTY_STATS_ITERABLE;
    import static com.google.common.math.StatsTesting.HORIZONTAL_VALUES_PAIRED_STATS;
    import static com.google.common.math.StatsTesting.MANY_VALUES;
    import static com.google.common.math.StatsTesting.MANY_VALUES_COUNT;
    import static com.google.common.math.StatsTesting.MANY_VALUES_PAIRED_STATS;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14K bytes
    - Viewed (0)
  6. src/internal/fuzz/encoding_test.go

    }
    
    func FuzzFloat64RoundTrip(f *testing.F) {
    	f.Add(math.Float64bits(0))
    	f.Add(math.Float64bits(math.Copysign(0, -1)))
    	f.Add(math.Float64bits(math.MaxFloat64))
    	f.Add(math.Float64bits(math.SmallestNonzeroFloat64))
    	f.Add(math.Float64bits(math.NaN()))
    	f.Add(uint64(0x7FF0000000000001)) // signaling NaN
    	f.Add(math.Float64bits(math.Inf(1)))
    	f.Add(math.Float64bits(math.Inf(-1)))
    
    	f.Fuzz(func(t *testing.T, u1 uint64) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. test/fixedbugs/issue23522.go

    package main
    
    import (
    	"math"
    )
    
    type S struct {
    	u int64
    	n int32
    }
    
    func F1(f float64) *S {
    	s := f
    	pf := math.Copysign(f, 1)
    	u := math.Floor(pf)
    	return &S{
    		u: int64(math.Copysign(u, s)),
    		n: int32(math.Copysign((pf-u)*1e9, s)),
    	}
    }
    
    func F2(f float64) *S {
    	s := f
    	f = math.Copysign(f, 1)
    	u := math.Floor(f)
    	return &S{
    		u: int64(math.Copysign(u, s)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 21:51:55 UTC 2018
    - 724 bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

    import static com.google.common.math.StatsTesting.OTHER_ONE_VALUE_STATS;
    import static com.google.common.math.StatsTesting.OTHER_TWO_VALUES;
    import static com.google.common.math.StatsTesting.OTHER_TWO_VALUES_STATS;
    import static com.google.common.math.StatsTesting.TWO_VALUES;
    import static com.google.common.math.StatsTesting.TWO_VALUES_STATS;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 23.4K bytes
    - Viewed (0)
  9. src/runtime/mkfastlog2table.go

    		L7    = 1.479819860511658591e-01   /* 3FC2F112 DF3E5244 */
    	)
    
    	// special cases
    	switch {
    	case math.IsNaN(x) || math.IsInf(x, 1):
    		return x
    	case x < 0:
    		return math.NaN()
    	case x == 0:
    		return math.Inf(-1)
    	}
    
    	// reduce
    	f1, ki := math.Frexp(x)
    	if f1 < math.Sqrt2/2 {
    		f1 *= 2
    		ki--
    	}
    	f := f1 - 1
    	k := float64(ki)
    
    	// compute
    	s := float64(f / (2 + f))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Jun 26 22:12:19 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  10. src/internal/itoa/itoa_test.go

    package itoa_test
    
    import (
    	"fmt"
    	"internal/itoa"
    	"math"
    	"testing"
    )
    
    var (
    	minInt64  int64  = math.MinInt64
    	maxInt64  int64  = math.MaxInt64
    	maxUint64 uint64 = math.MaxUint64
    )
    
    func TestItoa(t *testing.T) {
    	tests := []int{int(minInt64), math.MinInt32, -999, -100, -1, 0, 1, 100, 999, math.MaxInt32, int(maxInt64)}
    	for _, tt := range tests {
    		got := itoa.Itoa(tt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 02:53:50 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top