Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for log_10 (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. maven-core/src/test/resources/apiv4-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: Sun Oct 02 08:41:25 UTC 2022
    - 164.6K bytes
    - Viewed (0)
  8. maven-core/src/test/resources/apiv4-repo/org/codehaus/plexus/plexus-utils/1.4.5/plexus-utils-1.4.5.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
    - 200.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        //
        // Therefore we compute this as
        //
        //   (z + 1/2 - t(z) / log(t(z))) * log(t(z)).
        //
        // log_y = log_sqrt_two_pi + (z + one_half - t / log_t) * log_t + Log(x);
        Value t_div_log_t = rewriter.create<DivOp>(loc, t, log_t);
        Value one_half_minus_t_div_log_t =
            rewriter.create<SubOp>(loc, one_half, t_div_log_t);
        Value z_plus_one_half_minus_t_div_log_t =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/math/BigIntegerMath.java

       */
      @GwtIncompatible // TODO
      @SuppressWarnings("fallthrough")
      public static int log10(BigInteger x, RoundingMode mode) {
        checkPositive("x", x);
        if (fitsInLong(x)) {
          return LongMath.log10(x.longValue(), mode);
        }
    
        int approxLog10 = (int) (log2(x, FLOOR) * LN_2 / LN_10);
        BigInteger approxPow = BigInteger.TEN.pow(approxLog10);
        int approxCmp = approxPow.compareTo(x);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
Back to top