- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 695 for math3 (0.06 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/appendixa_test.go
// choose a single representation for all NaN values. For the purposes of this test, // all NaN representations are equivalent. func(a float64, b float64) bool { if math.IsNaN(a) && math.IsNaN(b) { return true } return math.Float64bits(a) == math.Float64bits(b) }, ) const ( reasonArrayFixedLength = "indefinite-length arrays are re-encoded with fixed length"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 15 18:59:36 UTC 2024 - 15.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/IntMathTest.java
* limitations under the License. */ package com.google.common.math; import static com.google.common.math.MathTesting.ALL_INTEGER_CANDIDATES; import static com.google.common.math.MathTesting.ALL_ROUNDING_MODES; import static com.google.common.math.MathTesting.ALL_SAFE_ROUNDING_MODES; import static com.google.common.math.MathTesting.EXPONENTS; import static com.google.common.math.MathTesting.NEGATIVE_INTEGER_CANDIDATES;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 24.5K bytes - Viewed (0) -
pkg/controller/podautoscaler/replica_calculator.go
replicaCount = statusReplicas usageRatio := float64(usage) / (float64(targetAverageUsage) * float64(replicaCount)) if math.Abs(1.0-usageRatio) > c.tolerance { // update number of replicas if change is large enough replicaCount = int32(math.Ceil(float64(usage) / float64(targetAverageUsage))) } usage = int64(math.Ceil(float64(usage) / float64(statusReplicas))) return replicaCount, usage, timestamp, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 19 03:31:34 UTC 2023 - 20.1K bytes - Viewed (0) -
src/math/rand/v2/rand_test.go
testWn = make([]float32, 128) testFn = make([]float32, 128) q := vn / math.Exp(-0.5*dn*dn) testKn[0] = uint32((dn / q) * m1) testKn[1] = 0 testWn[0] = float32(q / m1) testWn[127] = float32(dn / m1) testFn[0] = 1.0 testFn[127] = float32(math.Exp(-0.5 * dn * dn)) for i := 126; i >= 1; i-- { dn = math.Sqrt(-2.0 * math.Log(vn/dn+math.Exp(-0.5*dn*dn))) testKn[i+1] = uint32((dn / tn) * m1) tn = dn
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 17.4K bytes - Viewed (0) -
test/map.go
panic(fmt.Sprintln("float64 map should have 5 entries:", m)) } } { var ( pz = complex64(0) nz = complex(0, math.Float32frombits(1<<31)) nana = complex(5, float32(math.NaN())) nanb = complex(5, math.Float32frombits(math.Float32bits(float32(math.NaN()))^2)) ) m := map[complex64]string{ pz: "+0", nana: "NaN", nanb: "NaN", } if m[nz] != "+0" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 06 21:02:55 UTC 2014 - 14.9K bytes - Viewed (0) -
android/guava/src/com/google/common/math/LongMath.java
* Math.sqrt(k * k) <= Math.sqrt(x) <= Math.sqrt((k + 1) * (k + 1)) * since Math.sqrt is monotonic. * (long) Math.sqrt(k * k) <= (long) Math.sqrt(x) <= (long) Math.sqrt((k + 1) * (k + 1)) * since casting to long is monotonic * k <= (long) Math.sqrt(x) <= k + 1 * since (long) Math.sqrt(k * k) == k, as checked exhaustively in
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 44.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java
assertBitEquals(x, at.get()); } } /** compareAndSet succeeds in changing value if equal to expected else fails */ public void testCompareAndSet() { double prev = Math.E; double unused = Math.E + Math.PI; AtomicDouble at = new AtomicDouble(prev); for (double x : VALUES) { assertBitEquals(prev, at.get()); assertFalse(at.compareAndSet(unused, x)); assertBitEquals(prev, at.get());
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 09 22:57:07 UTC 2022 - 10.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/LongMathTest.java
* limitations under the License. */ package com.google.common.math; import static com.google.common.math.MathTesting.ALL_LONG_CANDIDATES; import static com.google.common.math.MathTesting.ALL_ROUNDING_MODES; import static com.google.common.math.MathTesting.ALL_SAFE_ROUNDING_MODES; import static com.google.common.math.MathTesting.EXPONENTS; import static com.google.common.math.MathTesting.NEGATIVE_INTEGER_CANDIDATES;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 04 20:15:57 UTC 2024 - 32.5K bytes - Viewed (0) -
src/encoding/binary/binary.go
case reflect.Float32: e.uint32(math.Float32bits(float32(v.Float()))) case reflect.Float64: e.uint64(math.Float64bits(v.Float())) case reflect.Complex64: x := v.Complex() e.uint32(math.Float32bits(float32(real(x)))) e.uint32(math.Float32bits(float32(imag(x)))) case reflect.Complex128: x := v.Complex() e.uint64(math.Float64bits(real(x))) e.uint64(math.Float64bits(imag(x))) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 17:29:31 UTC 2024 - 23.4K bytes - Viewed (0) -
cmd/metrics-resource.go
tot := ts.User + ts.System + ts.Idle + ts.Iowait + ts.Nice + ts.Steal cpuUserVal := math.Round(ts.User/tot*100*100) / 100 updateResourceMetrics(cpuSubsystem, cpuUser, cpuUserVal, labels, false) cpuSystemVal := math.Round(ts.System/tot*100*100) / 100 updateResourceMetrics(cpuSubsystem, cpuSystem, cpuSystemVal, labels, false) cpuIdleVal := math.Round(ts.Idle/tot*100*100) / 100
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 17 15:15:13 UTC 2024 - 17.2K bytes - Viewed (0)