Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 206 for sqrt1 (0.35 sec)

  1. src/crypto/internal/edwards25519/field/fe.go

    	t0.Square(&t0)            // 2^251 - 2
    	t0.Square(&t0)            // 2^252 - 4
    	return v.Multiply(&t0, x) // 2^252 - 3 -> x^(2^252-3)
    }
    
    // sqrtM1 is 2^((p-1)/4), which squared is equal to -1 by Euler's Criterion.
    var sqrtM1 = &Element{1718705420411056, 234908883556509,
    	2233514472574048, 2117202627021982, 765476049583133}
    
    // SqrtRatio sets r to the non-negative square root of the ratio of u and v.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. src/image/draw/example_test.go

    	const width = 130
    	const height = 50
    
    	im := image.NewGray(image.Rectangle{Max: image.Point{X: width, Y: height}})
    	for x := 0; x < width; x++ {
    		for y := 0; y < height; y++ {
    			dist := math.Sqrt(math.Pow(float64(x-width/2), 2)/3+math.Pow(float64(y-height/2), 2)) / (height / 1.5) * 255
    			var gray uint8
    			if dist > 255 {
    				gray = 255
    			} else {
    				gray = uint8(dist)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. samples/helloworld/src/app.py

    
    @app.route('/hello')
    def hello():
        version = os.environ.get('SERVICE_VERSION')
    
        # do some cpu intensive computation
        x = 0.0001
        for i in range(0, 1000000):
            x = x + math.sqrt(x)
    
        return 'Hello version: %s, instance: %s\n' % (version, os.environ.get('HOSTNAME'))
    
    
    @app.route('/health')
    def health():
        return 'Helloworld is healthy', 200
    
    
    if __name__ == "__main__":
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 20 13:44:21 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/arch/arm/armasm/plan9x.go

    	{VNEG_EQ_F64, []int{1, 0}, "VNEG", "NEGD"},
    	{VABS_EQ_F32, []int{1, 0}, "VABS", "ABSF"},
    	{VABS_EQ_F64, []int{1, 0}, "VABS", "ABSD"},
    	{VSQRT_EQ_F32, []int{1, 0}, "VSQRT", "SQRTF"},
    	{VSQRT_EQ_F64, []int{1, 0}, "VSQRT", "SQRTD"},
    	{VCMP_EQ_F32, []int{1, 0}, "VCMP", "CMPF"},
    	{VCMP_EQ_F64, []int{1, 0}, "VCMP", "CMPD"},
    	{VCMP_E_EQ_F32, []int{1, 0}, "VCMP.E", "CMPF"},
    	{VCMP_E_EQ_F64, []int{1, 0}, "VCMP.E", "CMPD"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  5. src/math/erf.go

    //                      | R - (erf(x)-x)/x | <= 2
    //
    //
    //         Remark. The formula is derived by noting
    //          erf(x) = (2/sqrt(pi))*(x - x**3/3 + x**5/10 - x**7/42 + ....)
    //         and that
    //          2/sqrt(pi) = 1.128379167095512573896158903121545171688
    //         is close to one. The interval is chosen because the fix
    //         point of erf(x) is near 0.6174 (i.e., erf(x)=x when x is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 11.5K bytes
    - Viewed (0)
  6. src/math/hypot_amd64.s

    	MOVQ    $~(1<<63), AX
    	ANDQ    AX, BX // p = |p|
    	MOVQ    q+8(FP), CX
    	ANDQ    AX, CX // q = |q|
    	MOVQ    $PosInf, AX
    	CMPQ    AX, BX
    	JLE     isInfOrNaN
    	CMPQ    AX, CX
    	JLE     isInfOrNaN
    	// hypot = max * sqrt(1 + (min/max)**2)
    	MOVQ    BX, X0
    	MOVQ    CX, X1
    	ORQ     CX, BX
    	JEQ     isZero
    	MOVAPD  X0, X2
    	MAXSD   X1, X0
    	MINSD   X2, X1
    	DIVSD   X0, X1
    	MULSD   X1, X1
    	ADDSD   $1.0, X1
    	SQRTSD  X1, X1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 15:48:19 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  7. src/math/cmplx/cmath_test.go

    			continue
    		}
    		// Sqrt(Conj(z)) == Conj(Sqrt(z))
    		if f := Sqrt(Conj(v.in)); !cAlike(Conj(v.want), f) && !cAlike(v.in, Conj(v.in)) {
    			t.Errorf("Sqrt(%g) = %g, want %g", Conj(v.in), f, Conj(v.want))
    		}
    	}
    	for _, pt := range branchPoints {
    		if f0, f1 := Sqrt(pt[0]), Sqrt(pt[1]); !cVeryclose(f0, f1) {
    			t.Errorf("Sqrt(%g) not continuous, got %g want %g", pt[0], f0, f1)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 48.1K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/ops/update_cpp_ops.sh

      ZerosLike \
      Shape \
      ExpandDims \
      OnesLike
    
    ${generate} \
      --category=math \
      Mul \
      Conj \
      AddV2 \
      MatMul \
      Neg \
      Sum \
      Sub \
      Div \
      DivNoNan \
      Exp \
      Sqrt \
      SqrtGrad \
      Log1p
    
    ${generate} \
      --category=nn \
      SparseSoftmaxCrossEntropyWithLogits \
      ReluGrad \
      Relu \
      BiasAdd \
      BiasAddGrad
    
    ${generate} \
      --category=resource_variable \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 17 17:54:34 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/unfuse_mhlo_batch_norm.mlir

      // CHECK-DAG: %[[EPS_BCAST:.+]] = mhlo.constant dense<1.001000e-05> : tensor<256xf32>
      // CHECK-DAG: %[[VARIANCE_EPS:.+]] = mhlo.add %[[VARIANCE]], %[[EPS_BCAST]] : tensor<256xf32>
      // CHECK-DAG: %[[STDDEV:.+]] = mhlo.sqrt %[[VARIANCE_EPS]] : tensor<256xf32>
      // CHECK-DAG: %[[STDDEV_BCAST:.+]] = "mhlo.broadcast_in_dim"(%[[STDDEV]]) <{broadcast_dimensions = dense<1> : tensor<1xi64>}> : (tensor<256xf32>) -> tensor<4x256xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. src/math/rand/rand_test.go

    	}
    
    	// Expect a uniform distribution of byte values, which lie in [0, 255].
    	var (
    		mean       = 255.0 / 2
    		stddev     = 256.0 / math.Sqrt(12.0)
    		errorScale = stddev / math.Sqrt(float64(n))
    	)
    
    	expected := &statsResults{mean, stddev, 0.10 * errorScale, 0.08 * errorScale}
    
    	// Cast bytes as floats to use the common distribution-validity checks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top