Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for sqrt101 (0.17 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
    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. android/guava/src/com/google/common/math/BigIntegerMath.java

           */
          sqrt0 = sqrtApproxWithDoubles(x.shiftRight(shift)).shiftLeft(shift >> 1);
        }
        BigInteger sqrt1 = sqrt0.add(x.divide(sqrt0)).shiftRight(1);
        if (sqrt0.equals(sqrt1)) {
          return sqrt0;
        }
        do {
          sqrt0 = sqrt1;
          sqrt1 = sqrt0.add(x.divide(sqrt0)).shiftRight(1);
        } while (sqrt1.compareTo(sqrt0) < 0);
        return sqrt0;
      }
    
      @GwtIncompatible // TODO
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/BigIntegerMath.java

           */
          sqrt0 = sqrtApproxWithDoubles(x.shiftRight(shift)).shiftLeft(shift >> 1);
        }
        BigInteger sqrt1 = sqrt0.add(x.divide(sqrt0)).shiftRight(1);
        if (sqrt0.equals(sqrt1)) {
          return sqrt0;
        }
        do {
          sqrt0 = sqrt1;
          sqrt1 = sqrt0.add(x.divide(sqrt0)).shiftRight(1);
        } while (sqrt1.compareTo(sqrt0) < 0);
        return sqrt0;
      }
    
      @GwtIncompatible // TODO
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. src/crypto/internal/edwards25519/field/fe.go

    	uNeg := new(Element).Negate(u)
    	correctSignSqrt := check.Equal(u)
    	flippedSignSqrt := check.Equal(uNeg)
    	flippedSignSqrtI := check.Equal(t0.Multiply(uNeg, sqrtM1))
    
    	rPrime := new(Element).Multiply(rr, sqrtM1) // r_prime = SQRT_M1 * r
    	// r = CT_SELECT(r_prime IF flipped_sign_sqrt | flipped_sign_sqrt_i ELSE r)
    	rr.Select(rPrime, rr, flippedSignSqrt|flippedSignSqrtI)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. test/typeparam/issue50193.go

    func zero[T Complex]() T {
    	return T(0)
    }
    func pi[T Complex]() T {
    	return T(3.14)
    }
    func sqrtN1[T Complex]() T {
    	return T(-1i)
    }
    
    func main() {
    	fmt.Println(zero[complex128]())
    	fmt.Println(pi[complex128]())
    	fmt.Println(sqrtN1[complex128]())
    	fmt.Println(zero[complex64]())
    	fmt.Println(pi[complex64]())
    	fmt.Println(sqrtN1[complex64]())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 599 bytes
    - Viewed (0)
  6. src/math/log1p.go

    //	Log1p(x < -1) = NaN
    //	Log1p(NaN) = NaN
    func Log1p(x float64) float64 {
    	if haveArchLog1p {
    		return archLog1p(x)
    	}
    	return log1p(x)
    }
    
    func log1p(x float64) float64 {
    	const (
    		Sqrt2M1     = 4.142135623730950488017e-01  // Sqrt(2)-1 = 0x3fda827999fcef34
    		Sqrt2HalfM1 = -2.928932188134524755992e-01 // Sqrt(2)/2-1 = 0xbfd2bec333018866
    		Small       = 1.0 / (1 << 29)              // 2**-29 = 0x3e20000000000000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  7. src/crypto/internal/edwards25519/field/fe_test.go

    }
    
    func TestDecimalConstants(t *testing.T) {
    	sqrtM1String := "19681161376707505956807079304988542015446066515923890162744021073123829784752"
    	if exp := new(Element).fromDecimal(sqrtM1String); sqrtM1.Equal(exp) != 1 {
    		t.Errorf("sqrtM1 is %v, expected %v", sqrtM1, exp)
    	}
    	// d is in the parent package, and we don't want to expose d or fromDecimal.
    	// dString := "37095705934669439343138083508754565189542113879843219016388785533085940283555"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/generic.rules

    (Div64F x (Const64F <t> [c])) && reciprocalExact64(c) => (Mul64F x (Const64F <t> [1/c]))
    
    // rewrite single-precision sqrt expression "float32(math.Sqrt(float64(x)))"
    (Cvt64Fto32F sqrt0:(Sqrt (Cvt32Fto64F x))) && sqrt0.Uses==1 => (Sqrt32 x)
    
    (Sqrt (Const64F [c])) && !math.IsNaN(math.Sqrt(c)) => (Const64F [math.Sqrt(c)])
    
    // for rewriting results of some late-expanded rewrites (below)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewritegeneric.go

    		return true
    	}
    	// match: (Cvt64Fto32F sqrt0:(Sqrt (Cvt32Fto64F x)))
    	// cond: sqrt0.Uses==1
    	// result: (Sqrt32 x)
    	for {
    		sqrt0 := v_0
    		if sqrt0.Op != OpSqrt {
    			break
    		}
    		sqrt0_0 := sqrt0.Args[0]
    		if sqrt0_0.Op != OpCvt32Fto64F {
    			break
    		}
    		x := sqrt0_0.Args[0]
    		if !(sqrt0.Uses == 1) {
    			break
    		}
    		v.reset(OpSqrt32)
    		v.AddArg(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  10. RELEASE.md

    peeyush18, Peng Yu, Pierre, preciousdp11, qjivy, Raingo, raoqiyu, ribx, Richard
    S. Imaoka, Rishabh Patel, Robert Walecki, Rockford Wei, Ryan Kung, Sahil Dua,
    Sandip Giri, Sayed Hadi Hashemi, sgt101, Shitian Ni, Shuolongbj, Siim PõDer,
    Simon Perkins, sj6077, SOLARIS, Spotlight0xff, Steffen Eberbach, Stephen Fox,
    superryanguo, Sven Mayer, Tapan Prakash, Tiago Morais Morgado, Till Hoffmann, Tj
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
Back to top