Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for log_10 (0.29 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. android/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)
  6. android/guava-tests/test/com/google/common/math/IntMathTest.java

            assertEquals(BigIntegerMath.log10(valueOf(x), mode), IntMath.log10(x, mode));
          }
        }
      }
    
      // Relies on the correctness of log10(int, FLOOR) and of pow(int, int).
      @GwtIncompatible // pow()
      public void testLog10Exact() {
        for (int x : POSITIVE_INTEGER_CANDIDATES) {
          int floor = IntMath.log10(x, FLOOR);
          boolean expectSuccess = IntMath.pow(10, floor) == x;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  7. src/math/stubs_s390x.s

    TEXT ·log10TrampolineSetup(SB), NOSPLIT, $0
    	MOVB   ·hasVX(SB), R1
    	CMPBEQ R1, $1, vectorimpl                 // vectorfacility = 1, vector supported
    	MOVD   $·log10vectorfacility+0x00(SB), R1
    	MOVD   $·log10(SB), R2
    	MOVD   R2, 0(R1)
    	BR     ·log10(SB)
    
    vectorimpl:
    	MOVD $·log10vectorfacility+0x00(SB), R1
    	MOVD $·log10Asm(SB), R2
    	MOVD R2, 0(R1)
    	BR   ·log10Asm(SB)
    
    GLOBL ·log10vectorfacility+0x00(SB), NOPTR, $8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 15:48:19 UTC 2021
    - 12.4K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/ops/math_ops.cc

    }
    
    // Op: Log1p()
    // Summary: Computes natural logarithm of (1 + x) element-wise.
    //
    // Description:
    //   I.e., \\(y = \log_e (1 + x)\\).
    //
    //   Example:
    //
    //   ```python
    //   x = tf.constant([0, 0.5, 1, 5])
    //   tf.math.log1p(x) ==> [0., 0.4054651, 0.6931472, 1.7917595]
    //   ```
    Status Log1p(AbstractContext* ctx, AbstractTensorHandle* const x,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 10 19:11:36 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  9. 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)
  10. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

      // Relies on the correctness of log10(BigInteger, {HALF_UP,HALF_DOWN}).
      @GwtIncompatible // TODO
      public void testLog10HalfEven() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
          int halfEven = BigIntegerMath.log10(x, HALF_EVEN);
          // Now figure out what rounding mode we should behave like (it depends if FLOOR was
          // odd/even).
          boolean floorWasEven = (BigIntegerMath.log10(x, FLOOR) & 1) == 0;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 17:58:33 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top