- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 326 for ABS (0.03 sec)
-
src/internal/types/testdata/check/lookup2.go
_ = x.ForM // ERROR "x.ForM undefined (type *big.Float has no field or method ForM)" _ = x.abs // ERROR "x.abs undefined (type *big.Float has no field or method abs, but does have method Abs)" _ = x.abS // ERROR "x.abS undefined (type *big.Float has no field or method abS)" _ = x.form // ERROR "x.form undefined (cannot refer to unexported field form)"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 07 16:41:56 UTC 2024 - 4.8K bytes - Viewed (0) -
src/math/cmplx/sqrt.go
// Rescale to avoid internal overflow or underflow. if math.Abs(a) > 4 || math.Abs(b) > 4 { a *= 0.25 b *= 0.25 scale = 2 } else { a *= 1.8014398509481984e16 // 2**54 b *= 1.8014398509481984e16 scale = 7.450580596923828125e-9 // 2**-27 } r := math.Hypot(a, b) var t float64 if a > 0 { t = math.Sqrt(0.5*r + 0.5*a) r = scale * math.Abs((0.5*b)/t) t *= scale } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 03:16:37 UTC 2020 - 3K bytes - Viewed (0) -
src/math/big/prime.go
if n < 0 { panic("negative n for ProbablyPrime") } if x.neg || len(x.abs) == 0 { return false } // primeBitMask records the primes < 64. const primeBitMask uint64 = 1<<2 | 1<<3 | 1<<5 | 1<<7 | 1<<11 | 1<<13 | 1<<17 | 1<<19 | 1<<23 | 1<<29 | 1<<31 | 1<<37 | 1<<41 | 1<<43 | 1<<47 | 1<<53 | 1<<59 | 1<<61 w := x.abs[0] if len(x.abs) == 1 && w < 64 { return primeBitMask&(1<<w) != 0 } if w&1 == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 02 14:43:52 UTC 2022 - 10.4K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/testFixtures/groovy/org/gradle/internal/snapshot/TestSnapshotFixture.groovy
FilenameUtils.separatorsToSystem(absolutePath), FilenameUtils.getName(absolutePath), TestHashCodes.hashCodeFrom(hashCode ?: pseudoRandom.nextLong()), file(abs(pseudoRandom.nextLong()), abs(pseudoRandom.nextLong()), accessType)) } FileSystemLocationSnapshot missing(String absolutePath, FileMetadata.AccessType accessType = DIRECT) { new MissingFileSnapshot( absolutePath,
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:34:50 UTC 2023 - 3.2K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/BaselineVersion.groovy
def diff = currentVersionMean - thisVersionMean def desc = diff > Duration.millis(0) ? "slower" : "faster" sb.append("Difference: ${diff.abs().format()} $desc (${toMillis(diff.abs())}), ${PrettyCalculator.percentChange(currentVersionMean, thisVersionMean)}%\n") sb.append(current.speedStats) sb.append(results.speedStats) sb.append("\n")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5.6K bytes - Viewed (0) -
src/math/big/intconv.go
// determine sign neg, err := scanSign(r) if err != nil { return nil, 0, err } // determine mantissa z.abs, base, _, err = z.abs.scan(r, base, false) if err != nil { return nil, base, err } z.neg = len(z.abs) > 0 && neg // 0 has no sign return z, base, nil } func scanSign(r io.ByteScanner) (neg bool, err error) { var ch byte
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 6.7K bytes - Viewed (0) -
src/math/hypot.go
// Hypot(NaN, q) = NaN // Hypot(p, NaN) = NaN func Hypot(p, q float64) float64 { if haveArchHypot { return archHypot(p, q) } return hypot(p, q) } func hypot(p, q float64) float64 { p, q = Abs(p), Abs(q) // special cases switch { case IsInf(p, 1) || IsInf(q, 1): return Inf(1) case IsNaN(p) || IsNaN(q): return NaN() } if p < q { p, q = q, p } if p == 0 { return 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 850 bytes - Viewed (0) -
pkg/util/async/bounded_frequency_runner_test.go
// Run once, immediately. // abs=0ms, rel=0ms runner.Run() waitForRun("first run", t, timer, obj) // Run again, before minInterval expires, with burst. timer.advance(1 * time.Millisecond) // abs=1ms, rel=1ms runner.Run() waitForRun("second run", t, timer, obj) // Run again, before minInterval expires. timer.advance(498 * time.Millisecond) // abs=499ms, rel=498ms runner.Run()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 15 09:36:26 UTC 2022 - 12.5K bytes - Viewed (0) -
src/math/pow.go
return Sqrt(x) case y == -0.5: return 1 / Sqrt(x) } yi, yf := Modf(Abs(y)) if yf != 0 && x < 0 { return NaN() } if yi >= 1<<63 { // yi is a large even int that will lead to overflow (or underflow to 0) // for all x except -1 (x == 1 was handled earlier) switch { case x == -1: return 1 case (Abs(x) < 1) == (y > 0): return 0 default: return Inf(1) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 24 19:10:58 UTC 2023 - 3.6K bytes - Viewed (0) -
internal/s3select/json/record.go
// See golang.org/issue/6384 and golang.org/issue/14135. // Like fmt %g, but the exponent cutoffs are different // and exponents themselves are not padded to two digits. abs := math.Abs(f) fmt := byte('f') if abs != 0 { if abs < 1e-6 || abs >= 1e21 { fmt = 'e' } } dst = strconv.AppendFloat(dst, f, fmt, -1, 64) if fmt == 'e' { // clean up e-09 to e-9 n := len(dst)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Feb 25 20:31:19 UTC 2022 - 5.2K bytes - Viewed (0)