Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 216 for Rsqrt (0.04 sec)

  1. src/cmd/compile/internal/test/testdata/sqrtConst_test.go

    	name string
    	in   float64 // used for error messages, not an input
    	got  float64
    	want float64
    }{
    	{"sqrt0", 0, math.Sqrt(0), 0},
    	{"sqrt1", 1, math.Sqrt(1), 1},
    	{"sqrt2", 2, math.Sqrt(2), math.Sqrt2},
    	{"sqrt4", 4, math.Sqrt(4), 2},
    	{"sqrt100", 100, math.Sqrt(100), 10},
    	{"sqrt101", 101, math.Sqrt(101), 10.04987562112089},
    }
    
    var nanTests = [...]struct {
    	name string
    	in   float64 // used for error messages, not an input
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  2. src/math/big/sqrt_test.go

    )
    
    // TestFloatSqrt64 tests that Float.Sqrt of numbers with 53bit mantissa
    // behaves like float math.Sqrt.
    func TestFloatSqrt64(t *testing.T) {
    	for i := 0; i < 1e5; i++ {
    		if i == 1e2 && testing.Short() {
    			break
    		}
    		r := rand.Float64()
    
    		got := new(Float).SetPrec(53)
    		got.Sqrt(NewFloat(r))
    		want := NewFloat(math.Sqrt(r))
    		if got.Cmp(want) != 0 {
    			t.Fatalf("Sqrt(%g) =\n got %g;\nwant %g", r, got, want)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 4.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/StatsTest.java

        assertThat(INTEGER_MANY_VALUES_STATS_ITERABLE.populationStandardDeviation())
            .isWithin(ALLOWED_ERROR * sqrt(INTEGER_MANY_VALUES_SUM_OF_SQUARES_OF_DELTAS))
            .of(sqrt(INTEGER_MANY_VALUES_SUM_OF_SQUARES_OF_DELTAS / INTEGER_MANY_VALUES_COUNT));
        assertThat(LONG_MANY_VALUES_STATS_ITERATOR.populationStandardDeviation())
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 28.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

            .isWithin(ALLOWED_ERROR * sqrt(LONG_MANY_VALUES_SUM_OF_SQUARES_OF_DELTAS))
            .of(sqrt(LONG_MANY_VALUES_SUM_OF_SQUARES_OF_DELTAS / LONG_MANY_VALUES_COUNT));
        assertThat(longManyValuesAccumulatorByAddAllVarargs.populationStandardDeviation())
            .isWithin(ALLOWED_ERROR * sqrt(LONG_MANY_VALUES_SUM_OF_SQUARES_OF_DELTAS))
            .of(sqrt(LONG_MANY_VALUES_SUM_OF_SQUARES_OF_DELTAS / LONG_MANY_VALUES_COUNT));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 34K bytes
    - Viewed (0)
  5. src/math/acosh.go

    //
    //
    // __ieee754_acosh(x)
    // Method :
    //	Based on
    //	        acosh(x) = log [ x + sqrt(x*x-1) ]
    //	we have
    //	        acosh(x) := log(x)+ln2,	if x is large; else
    //	        acosh(x) := log(2x-1/(sqrt(x*x-1)+x)) if x>2; else
    //	        acosh(x) := log1p(t+sqrt(2.0*t+t*t)); where t=x-1.
    //
    // Special cases:
    //	acosh(x) is NaN with signal if x<1.
    //	acosh(NaN) is NaN without signal.
    //
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  6. src/math/j0.go

    			} else {
    				ss = z / cc
    			}
    		}
    
    		// j0(x) = 1/sqrt(pi) * (P(0,x)*cc - Q(0,x)*ss) / sqrt(x)
    		// y0(x) = 1/sqrt(pi) * (P(0,x)*ss + Q(0,x)*cc) / sqrt(x)
    
    		var z float64
    		if x > Two129 { // |x| > ~6.8056e+38
    			z = (1 / SqrtPi) * cc / Sqrt(x)
    		} else {
    			u := pzero(x)
    			v := qzero(x)
    			z = (1 / SqrtPi) * (u*cc - v*ss) / Sqrt(x)
    		}
    		return z // |x| >= 2.0
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 13.6K bytes
    - Viewed (0)
  7. src/math/log1p.go

    	}
    
    	absx := Abs(x)
    
    	var f float64
    	var iu uint64
    	k := 1
    	if absx < Sqrt2M1 { //  |x| < Sqrt(2)-1
    		if absx < Small { // |x| < 2**-29
    			if absx < Tiny { // |x| < 2**-54
    				return x
    			}
    			return x - x*x*0.5
    		}
    		if x > Sqrt2HalfM1 { // Sqrt(2)/2-1 < x
    			// (Sqrt(2)/2-1) < x < (Sqrt(2)-1)
    			k = 0
    			f = x
    			iu = 1
    		}
    	}
    	var c float64
    	if k != 0 {
    		var u float64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

      );
    
      let results = (outs
        TFL_TensorOf<[F32, I32, I64, QI16, QUI8, TFL_Quint8]>:$output
      );
    
      let hasOptions = 1;
    }
    
    def TFL_RsqrtOp: TFL_Op<"rsqrt", [Pure,
                                      QuantizableResult,
                                      TFL_SameFirstOperandAndFirstResultElementType,
                                      SameOperandsAndResultShape]> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  9. test/fixedbugs/issue16804.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 16804: internal error for math.Sqrt as statement
    //              rather than expression
    
    package main
    
    import "math"
    
    func sqrt() {
    	math.Sqrt(2.0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Aug 21 16:49:48 UTC 2016
    - 331 bytes
    - Viewed (0)
  10. src/math/asinh.go

    //
    //
    // asinh(x)
    // Method :
    //	Based on
    //	        asinh(x) = sign(x) * log [ |x| + sqrt(x*x+1) ]
    //	we have
    //	asinh(x) := x  if  1+x*x=1,
    //	         := sign(x)*(log(x)+ln2) for large |x|, else
    //	         := sign(x)*log(2|x|+1/(|x|+sqrt(x*x+1))) if|x|>2, else
    //	         := sign(x)*log1p(|x| + x**2/(1 + sqrt(1+x**2)))
    //
    
    // Asinh returns the inverse hyperbolic sine of x.
    //
    // Special cases are:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 20:02:49 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top