Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 966 for mymath (0.1 sec)

  1. src/cmp/cmp_test.go

    	{1.0, 1.1, -1},
    	{1.1, 1.1, 0},
    	{1.1, 1.0, +1},
    	{math.Inf(1), math.Inf(1), 0},
    	{math.Inf(-1), math.Inf(-1), 0},
    	{math.Inf(-1), 1.0, -1},
    	{1.0, math.Inf(-1), +1},
    	{math.Inf(1), 1.0, +1},
    	{1.0, math.Inf(1), -1},
    	{math.NaN(), math.NaN(), 0},
    	{0.0, math.NaN(), +1},
    	{math.NaN(), 0.0, -1},
    	{math.NaN(), math.Inf(-1), -1},
    	{math.Inf(-1), math.NaN(), +1},
    	{0.0, 0.0, 0},
    	{negzero, negzero, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. test/fixedbugs/issue53600.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import "math"
    
    func main() {
    	f()
    	g()
    	h()
    	j(math.MinInt64)
    }
    func f() {
    	for i := int64(math.MaxInt64); i <= math.MaxInt64; i++ {
    		if i < 0 {
    			println("done")
    			return
    		}
    		println(i, i < 0)
    	}
    }
    func g() {
    	for i := int64(math.MaxInt64) - 1; i <= math.MaxInt64; i++ {
    		if i < 0 {
    			println("done")
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 06 17:00:37 UTC 2022
    - 802 bytes
    - Viewed (0)
  3. src/math/rand/zipf.go

    	z.v = v
    	z.q = s
    	z.oneminusQ = 1.0 - z.q
    	z.oneminusQinv = 1.0 / z.oneminusQ
    	z.hxm = z.h(z.imax + 0.5)
    	z.hx0minusHxm = z.h(0.5) - math.Exp(math.Log(z.v)*(-z.q)) - z.hxm
    	z.s = 1 - z.hinv(z.h(1.5)-math.Exp(-z.q*math.Log(z.v+1.0)))
    	return z
    }
    
    // Uint64 returns a value drawn from the [Zipf] distribution described
    // by the [Zipf] object.
    func (z *Zipf) Uint64() uint64 {
    	if z == nil {
    		panic("rand: nil Zipf")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modload/import.go

    // maybeInModule reports whether, syntactically,
    // a package with the given import path could be supplied
    // by a module with the given module path (mpath).
    func maybeInModule(path, mpath string) bool {
    	return mpath == path ||
    		len(path) > len(mpath) && path[len(mpath)] == '/' && path[:len(mpath)] == mpath
    }
    
    var (
    	haveGoModCache   par.Cache[string, bool]    // dir → bool
    	haveGoFilesCache par.ErrCache[string, bool] // dir → haveGoFiles
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  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. test/loopbce.go

    	}
    	for i := int64(math.MaxInt64 - 8); i <= math.MaxInt64-2; i += 4 { // ERROR "Induction variable: limits \[9223372036854775799,9223372036854775803\], increment 4$"
    		useString("foo")
    	}
    	for i := int64(math.MaxInt64 - 7); i <= math.MaxInt64-2; i += 4 {
    		useString("foo")
    	}
    	for i := int64(math.MaxInt64 - 6); i <= math.MaxInt64-2; i += 4 {
    		useString("foo")
    	}
    }
    
    func d5() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 13.8K bytes
    - Viewed (0)
Back to top