Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,755 for math3 (0.1 sec)

  1. src/math/cmplx/pow.go

    		case r < 0:
    			if i == 0 {
    				return complex(math.Inf(1), 0)
    			}
    			return Inf()
    		case r > 0:
    			return 0
    		}
    		panic("not reached")
    	}
    	modulus := Abs(x)
    	if modulus == 0 {
    		return complex(0, 0)
    	}
    	r := math.Pow(modulus, real(y))
    	arg := Phase(x)
    	theta := real(y) * arg
    	if imag(y) != 0 {
    		r *= math.Exp(-imag(y) * arg)
    		theta += imag(y) * math.Log(modulus)
    	}
    	s, c := math.Sincos(theta)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. src/math/big/rat_test.go

    	if math.Abs(float64(f)) >= math.MaxFloat32 {
    		// Cannot check +Inf, -Inf, nor the float next to them (MaxFloat32).
    		// But we have tests for these special cases.
    		return true
    	}
    
    	// r must be strictly between f0 and f1, the floats bracketing f.
    	f0 := math.Nextafter32(f, float32(math.Inf(-1)))
    	f1 := math.Nextafter32(f, float32(math.Inf(+1)))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 07 00:15:59 UTC 2022
    - 18.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc_test.go

    		delta := div32 - last
    		consume(idx, delta*x)
    		last = div32
    	}
    	consume(n-1, (1-last)*x)
    }
    
    func f64RelDiff(a, b float64) float64 {
    	den := math.Max(math.Abs(a), math.Abs(b))
    	if den == 0 {
    		return 0
    	}
    	return math.Abs(a-b) / den
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 18:17:27 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  4. src/runtime/fastlog2_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime_test
    
    import (
    	"math"
    	"runtime"
    	"testing"
    )
    
    func TestFastLog2(t *testing.T) {
    	// Compute the euclidean distance between math.Log2 and the FastLog2
    	// implementation over the range of interest for heap sampling.
    	const randomBitCount = 26
    	var e float64
    
    	inc := 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:34:33 UTC 2016
    - 784 bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/math/LongMathRoundingBenchmark.java

     */
    
    package com.google.common.math;
    
    import static com.google.common.math.MathBenchmarking.ARRAY_MASK;
    import static com.google.common.math.MathBenchmarking.ARRAY_SIZE;
    import static com.google.common.math.MathBenchmarking.RANDOM_SOURCE;
    import static com.google.common.math.MathBenchmarking.randomNonZeroBigInteger;
    import static com.google.common.math.MathBenchmarking.randomPositiveBigInteger;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.6K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/math/IntMathRoundingBenchmark.java

     */
    
    package com.google.common.math;
    
    import static com.google.common.math.MathBenchmarking.ARRAY_MASK;
    import static com.google.common.math.MathBenchmarking.ARRAY_SIZE;
    import static com.google.common.math.MathBenchmarking.RANDOM_SOURCE;
    import static com.google.common.math.MathBenchmarking.randomNonZeroBigInteger;
    import static com.google.common.math.MathBenchmarking.randomPositiveBigInteger;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/package-info.java

    /**
     * Arithmetic functions operating on primitive values and on {@link java.math.BigInteger} and {@link
     * java.math.BigDecimal} instances.
     *
     * <p>This package is a part of the open-source <a href="https://github.com/google/guava">Guava</a>
     * library.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/MathExplained">math utilities</a>.
     */
    @ParametersAreNonnullByDefault
    @CheckReturnValue
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 23 19:57:03 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/math/package-info.java

    /**
     * Arithmetic functions operating on primitive values and on {@link java.math.BigInteger} and {@link
     * java.math.BigDecimal} instances.
     *
     * <p>This package is a part of the open-source <a href="https://github.com/google/guava">Guava</a>
     * library.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/MathExplained">math utilities</a>.
     */
    @ParametersAreNonnullByDefault
    @CheckReturnValue
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 23 19:57:03 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. src/strconv/ftoa_test.go

    	{32, 'g', -1, "32"},
    	{32, 'g', 0, "3e+01"},
    
    	{100, 'x', -1, "0x1.9p+06"},
    	{100, 'y', -1, "%y"},
    
    	{math.NaN(), 'g', -1, "NaN"},
    	{-math.NaN(), 'g', -1, "NaN"},
    	{math.Inf(0), 'g', -1, "+Inf"},
    	{math.Inf(-1), 'g', -1, "-Inf"},
    	{-math.Inf(0), 'g', -1, "-Inf"},
    
    	{-1, 'b', -1, "-4503599627370496p-52"},
    
    	// fixed bugs
    	{0.9, 'f', 1, "0.9"},
    	{0.09, 'f', 1, "0.1"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 24 23:50:20 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  10. src/slices/slices_test.go

    		{x: make([]struct{}, math.MaxInt/6-5), count: 6, want: make([]struct{}, 6*(math.MaxInt/6-5))},
    		{x: make([]struct{}, math.MaxInt/7-6), count: 7, want: make([]struct{}, 7*(math.MaxInt/7-6))},
    		{x: make([]struct{}, math.MaxInt/8-7), count: 8, want: make([]struct{}, 8*(math.MaxInt/8-7))},
    		{x: make([]struct{}, math.MaxInt/9-8), count: 9, want: make([]struct{}, 9*(math.MaxInt/9-8))},
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top