Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for Log10 (0.05 sec)

  1. src/math/export_s390x_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package math
    
    // Export internal functions and variable for testing.
    var Log10NoVec = log10
    var CosNoVec = cos
    var CoshNoVec = cosh
    var SinNoVec = sin
    var SinhNoVec = sinh
    var TanhNoVec = tanh
    var Log1pNovec = log1p
    var AtanhNovec = atanh
    var AcosNovec = acos
    var AcoshNovec = acosh
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 08 19:52:30 UTC 2017
    - 732 bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/LongMathTest.java

            assertEquals(BigIntegerMath.log10(valueOf(x), mode), LongMath.log10(x, mode));
          }
        }
      }
    
      // Relies on the correctness of log10(long, FLOOR) and of pow(long, int).
      @GwtIncompatible // TODO
      public void testLog10Exact() {
        for (long x : POSITIVE_LONG_CANDIDATES) {
          int floor = LongMath.log10(x, FLOOR);
          boolean expectedSuccess = LongMath.pow(10, floor) == x;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  3. src/math/log10_s390x.s

    DATA log10rodataL19<>+112(SB)/8, $-.64572084905921579630E-07
    DATA log10rodataL19<>+120(SB)/8, $-5.5
    DATA log10rodataL19<>+128(SB)/8, $18446744073709551616.
    GLOBL log10rodataL19<>+0(SB), RODATA, $136
    
    // Table of log10 correction terms
    DATA log10tab2074<>+0(SB)/8, $0.254164497922885069E-01
    DATA log10tab2074<>+8(SB)/8, $0.179018857989381839E-01
    DATA log10tab2074<>+16(SB)/8, $0.118926768029048674E-01
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 15:34:41 UTC 2019
    - 4.7K bytes
    - Viewed (0)
  4. src/math/cmplx/cmath_test.go

    		}
    	}
    }
    func TestLog10(t *testing.T) {
    	for i := 0; i < len(vc); i++ {
    		if f := Log10(vc[i]); !cVeryclose(log10[i], f) {
    			t.Errorf("Log10(%g) = %g, want %g", vc[i], f, log10[i])
    		}
    	}
    	for _, v := range log10SC {
    		if f := Log10(v.in); !cAlike(v.want, f) {
    			t.Errorf("Log10(%g) = %g, want %g", v.in, f, v.want)
    		}
    		if math.IsNaN(imag(v.in)) || math.IsNaN(imag(v.want)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 48.1K bytes
    - Viewed (0)
  5. 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)
  6. guava/src/com/google/common/math/IntMath.java

         * can narrow the possible floor(log10(x)) values to two. For example, if floor(log2(x)) is 6,
         * then 64 <= x < 128, so floor(log10(x)) is either 1 or 2.
         */
        int y = maxLog10ForLeadingZeros[Integer.numberOfLeadingZeros(x)];
        /*
         * y is the higher of the two possible values of floor(log10(x)). If x < 10^y, then we want the
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/BigIntegerMath.java

       *     is not a power of ten
       */
      @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);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/math/BigIntegerMath.java

       *     is not a power of ten
       */
      @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);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/IntMath.java

         * can narrow the possible floor(log10(x)) values to two. For example, if floor(log2(x)) is 6,
         * then 64 <= x < 128, so floor(log10(x)) is either 1 or 2.
         */
        int y = maxLog10ForLeadingZeros[Integer.numberOfLeadingZeros(x)];
        /*
         * y is the higher of the two possible values of floor(log10(x)). If x < 10^y, then we want the
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. src/math/example_test.go

    	fmt.Printf("%.1f\n", y)
    	// Output:
    	// 0.0
    	// 1.0
    }
    
    func ExampleLog2() {
    	fmt.Printf("%.1f", math.Log2(256))
    	// Output: 8.0
    }
    
    func ExampleLog10() {
    	fmt.Printf("%.1f", math.Log10(100))
    	// Output: 2.0
    }
    
    func ExampleRemainder() {
    	fmt.Printf("%.1f", math.Remainder(100, 30))
    	// Output: 10.0
    }
    
    func ExampleMod() {
    	c := math.Mod(7, 4)
    	fmt.Printf("%.1f", c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 07 18:09:53 UTC 2021
    - 3.7K bytes
    - Viewed (0)
Back to top