- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 86 for log_10 (0.12 sec)
-
src/go/doc/testdata/benchmark.go
} func max(x, y int) int { if x < y { return y } return x } // roundDown10 rounds a number down to the nearest power of 10. func roundDown10(n int) int { var tens = 0 // tens = floor(log_10(n)) for n > 10 { n = n / 10 tens++ } // result = 10^tens result := 1 for i := 0; i < tens; i++ { result *= 10 } return result }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 7.4K bytes - Viewed (0) -
src/math/log10.go
// license that can be found in the LICENSE file. package math // Log10 returns the decimal logarithm of x. // The special cases are the same as for [Log]. func Log10(x float64) float64 { if haveArchLog10 { return archLog10(x) } return log10(x) } func log10(x float64) float64 { return Log(x) * (1 / Ln10) } // Log2 returns the binary logarithm of x.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 873 bytes - Viewed (0) -
src/go/constant/value.go
// approximate float64 mantissa m and decimal exponent d // f ~ m * 10**d m, _ := mant.Float64() // 0.5 <= |m| < 1.0 d := float64(exp) * (math.Ln2 / math.Ln10) // log_10(2) // adjust m for truncated (integer) decimal exponent e e := int64(d) m *= math.Pow(10, d-float64(e)) // ensure 1 <= |m| < 10 switch am := math.Abs(m); { case am < 1-0.5e-6:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0) -
src/math/log1p.go
// // Special cases are: // // Log1p(+Inf) = +Inf // Log1p(±0) = ±0 // Log1p(-1) = -Inf // Log1p(x < -1) = NaN // Log1p(NaN) = NaN func Log1p(x float64) float64 { if haveArchLog1p { return archLog1p(x) } return log1p(x) } func log1p(x float64) float64 { const ( Sqrt2M1 = 4.142135623730950488017e-01 // Sqrt(2)-1 = 0x3fda827999fcef34
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 6.3K bytes - Viewed (0) -
maven-core/src/test/resources/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
org/codehaus/plexus/util/TypeFormat.class package org.codehaus.plexus.util; public final synchronized class TypeFormat { private static final char[] DIGITS; private static final int[] INT_POW_10; private static final long[] LONG_POW_10; private static final double LOG_10; private static final float FLOAT_RELATIVE_ERROR; private static final double DOUBLE_RELATIVE_ERROR; private static String[] LEADING_ZEROS; private static final double[] DOUBLE_POW_10; private void TypeFormat(); public static int indexOf(CharSequence,...
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Oct 16 20:15:40 UTC 2007 - 164.6K bytes - Viewed (0) -
src/math/arith_s390x_test.go
a := Abs(vf[i]) if f := Log10NoVec(a); !veryclose(log10[i], f) { t.Errorf("Log10(%g) = %g, want %g", a, f, log10[i]) } } if f := Log10NoVec(E); f != Log10E { t.Errorf("Log10(%g) = %g, want %g", E, f, Log10E) } for i := 0; i < len(vflogSC); i++ { if f := Log10NoVec(vflogSC[i]); !alike(logSC[i], f) { t.Errorf("Log10(%g) = %g, want %g", vflogSC[i], f, logSC[i]) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 08 19:52:30 UTC 2017 - 10.8K bytes - Viewed (0) -
src/math/cmplx/log.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 03:16:37 UTC 2020 - 2K bytes - Viewed (0) -
maven-api-impl/src/test/remote-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
org/codehaus/plexus/util/TypeFormat.class package org.codehaus.plexus.util; public final synchronized class TypeFormat { private static final char[] DIGITS; private static final int[] INT_POW_10; private static final long[] LONG_POW_10; private static final double LOG_10; private static final float FLOAT_RELATIVE_ERROR; private static final double DOUBLE_RELATIVE_ERROR; private static String[] LEADING_ZEROS; private static final double[] DOUBLE_POW_10; private void TypeFormat(); public static int indexOf(CharSequence,...
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu May 02 15:10:38 UTC 2024 - 164.6K bytes - Viewed (0) -
maven-core/src/test/resources/apiv4-repo/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar
org/codehaus/plexus/util/TypeFormat.class package org.codehaus.plexus.util; public final synchronized class TypeFormat { private static final char[] DIGITS; private static final int[] INT_POW_10; private static final long[] LONG_POW_10; private static final double LOG_10; private static final float FLOAT_RELATIVE_ERROR; private static final double DOUBLE_RELATIVE_ERROR; private static String[] LEADING_ZEROS; private static final double[] DOUBLE_POW_10; private void TypeFormat(); public static int indexOf(CharSequence,...
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Sun Oct 02 08:41:25 UTC 2022 - 160K bytes - Viewed (0) -
maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
org/codehaus/plexus/util/TypeFormat.class package org.codehaus.plexus.util; public final synchronized class TypeFormat { private static final char[] DIGITS; private static final int[] INT_POW_10; private static final long[] LONG_POW_10; private static final double LOG_10; private static final float FLOAT_RELATIVE_ERROR; private static final double DOUBLE_RELATIVE_ERROR; private static String[] LEADING_ZEROS; private static final double[] DOUBLE_POW_10; private void TypeFormat(); public static int indexOf(CharSequence,...
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Oct 16 20:15:40 UTC 2007 - 164.6K bytes - Viewed (0)