Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 218 for rsqrt (0.12 sec)

  1. src/math/j1.go

    			} else {
    				ss = z / cc
    			}
    		}
    
    		// j1(x) = 1/sqrt(pi) * (P(1,x)*cc - Q(1,x)*ss) / sqrt(x)
    		// y1(x) = 1/sqrt(pi) * (P(1,x)*ss + Q(1,x)*cc) / sqrt(x)
    
    		var z float64
    		if x > Two129 {
    			z = (1 / SqrtPi) * cc / Sqrt(x)
    		} else {
    			u := pone(x)
    			v := qone(x)
    			z = (1 / SqrtPi) * (u*cc - v*ss) / Sqrt(x)
    		}
    		if sign {
    			return -z
    		}
    		return z
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 13.3K bytes
    - Viewed (0)
  2. src/math/hypot.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package math
    
    /*
    	Hypot -- sqrt(p*p + q*q), but overflows only if the result does.
    */
    
    // Hypot returns [Sqrt](p*p + q*q), taking care to avoid
    // unnecessary overflow and underflow.
    //
    // Special cases are:
    //
    //	Hypot(±Inf, q) = +Inf
    //	Hypot(p, ±Inf) = +Inf
    //	Hypot(NaN, q) = NaN
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 850 bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

    $$\text{lr}_t := \mathrm{lr} \cdot \frac{\sqrt{1 - \beta_2^t}}{1 - \beta_1^t}$$
    $$m_t := \beta_1 \cdot m_{t-1} + (1 - \beta_1) \cdot g$$
    $$v_t := \beta_2 \cdot v_{t-1} + (1 - \beta_2) \cdot g^2$$
    $$\text{var} := \begin{cases} \text{var} - (m_t \beta_1 + g \cdot (1 - \beta_1))\cdot\text{lr}_t/(\sqrt{v_t} + \epsilon), &\text{if use_nesterov}\\\\  \text{var} - m_t \cdot \text{lr}_t /(\sqrt{v_t} + \epsilon), &\text{otherwise} \end{cases}$$
      }];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

          BigInteger plusHalfSquared = result.pow(2).add(result).shiftLeft(2).add(ONE);
          BigInteger x4 = x.shiftLeft(2);
          // sqrt(x) <= result + 0.5, so 4 * x <= (result + 0.5)^2 * 4
          // (result + 0.5)^2 * 4 = (result^2 + result)*4 + 1
          assertTrue(x4.compareTo(plusHalfSquared) <= 0);
          BigInteger minusHalfSquared = result.pow(2).subtract(result).shiftLeft(2).add(ONE);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 17:58:33 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  5. src/image/jpeg/idct.go

     */
    
    const blockSize = 64 // A DCT block is 8x8.
    
    type block [blockSize]int32
    
    const (
    	w1 = 2841 // 2048*sqrt(2)*cos(1*pi/16)
    	w2 = 2676 // 2048*sqrt(2)*cos(2*pi/16)
    	w3 = 2408 // 2048*sqrt(2)*cos(3*pi/16)
    	w5 = 1609 // 2048*sqrt(2)*cos(5*pi/16)
    	w6 = 1108 // 2048*sqrt(2)*cos(6*pi/16)
    	w7 = 565  // 2048*sqrt(2)*cos(7*pi/16)
    
    	w1pw7 = w1 + w7
    	w1mw7 = w1 - w7
    	w2pw6 = w2 + w6
    	w2mw6 = w2 - w6
    	w3pw5 = w3 + w5
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 23:18:37 UTC 2019
    - 5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/integrator.go

    	// standard deviation is sqrt( average( (x - xbar)^2 ) )
    	// = sqrt( Integral( x^2 + xbar^2 -2*x*xbar dt ) / Duration )
    	// = sqrt( ( Integral( x^2 dt ) + Duration * xbar^2 - 2*xbar*Integral(x dt) ) / Duration)
    	// = sqrt( Integral(x^2 dt)/Duration - xbar^2 )
    	variance := igr.IntegralXX/igr.ElapsedSeconds - avg*avg
    	if variance >= 0 {
    		return avg, math.Sqrt(variance)
    	}
    	return avg, math.NaN()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 17:37:20 UTC 2022
    - 5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/IntMathTest.java

            assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(IntMath.sqrt(x, mode)));
          }
        }
      }
    
      /* Relies on the correctness of sqrt(int, FLOOR). */
      @GwtIncompatible // sqrt
      public void testSqrtExactMatchesFloorOrThrows() {
        for (int x : POSITIVE_INTEGER_CANDIDATES) {
          int floor = IntMath.sqrt(x, FLOOR);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  8. src/math/jn.go

    		// Safe to use J(n+1,x)=2n/x *J(n,x)-J(n-1,x)
    		if x >= Two302 { // x > 2**302
    
    			// (x >> n**2)
    			//          Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi)
    			//          Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi)
    			//          Let s=sin(x), c=cos(x),
    			//              xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then
    			//
    			//                 n    sin(xn)*sqt2    cos(xn)*sqt2
    			//              ----------------------------------
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.td

    // This decomposition is only correct inside XLA as it ignores use_locking
    // attribute.
    // alpha <- learning_rate * sqrt(1 - beta2^t) / (1 - beta1^t)
    // m_t <- beta1 * m_{t-1} + (1 - beta1) * g_t
    // v_t <- beta2 * v_{t-1} + (1 - beta2) * g_t * g_t
    // variable <- variable - alpha * m_t / (sqrt(v_t) + epsilon)
    def DecomposeResourceApplyAdamNonNesterov :
      Pattern<
        (TF_ResourceApplyAdamOp:$src_op
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/BigIntegerMath.java

       *     sqrt(x)} is not an integer
       */
      @GwtIncompatible // TODO
      @SuppressWarnings("fallthrough")
      public static BigInteger sqrt(BigInteger x, RoundingMode mode) {
        checkNonNegative("x", x);
        if (fitsInLong(x)) {
          return BigInteger.valueOf(LongMath.sqrt(x.longValue(), mode));
        }
        BigInteger sqrtFloor = sqrtFloor(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