- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 130 for _sin (0.18 sec)
-
src/math/sin.go
if j == 1 || j == 2 { y = z + z*zz*((((((_sin[0]*zz)+_sin[1])*zz+_sin[2])*zz+_sin[3])*zz+_sin[4])*zz+_sin[5]) } else { y = 1.0 - 0.5*zz + zz*zz*((((((_cos[0]*zz)+_cos[1])*zz+_cos[2])*zz+_cos[3])*zz+_cos[4])*zz+_cos[5]) } if sign { y = -y } return y } // Sin returns the sine of the radian argument x. // // Special cases are: // // Sin(±0) = ±0 // Sin(±Inf) = NaN // Sin(NaN) = NaN
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 6.4K bytes - Viewed (0) -
src/math/sincos.go
} zz := z * z cos = 1.0 - 0.5*zz + zz*zz*((((((_cos[0]*zz)+_cos[1])*zz+_cos[2])*zz+_cos[3])*zz+_cos[4])*zz+_cos[5]) sin = z + z*zz*((((((_sin[0]*zz)+_sin[1])*zz+_sin[2])*zz+_sin[3])*zz+_sin[4])*zz+_sin[5]) if j == 1 || j == 2 { sin, cos = cos, sin } if cosSign { cos = -cos } if sinSign { sin = -sin } return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 1.8K bytes - Viewed (0) -
src/math/cmplx/asin.go
// Larger relative error can be observed for z near zero. // Also tested by csin(casin(z)) = z. // Asin returns the inverse sine of x. func Asin(x complex128) complex128 { switch re, im := real(x), imag(x); { case im == 0 && math.Abs(re) <= 1: return complex(math.Asin(re), im) case re == 0 && math.Abs(im) <= 1: return complex(re, math.Asinh(im)) case math.IsNaN(im): switch {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 03:16:37 UTC 2020 - 5.9K bytes - Viewed (0) -
src/math/asin.go
They are implemented by computing the arctangent after appropriate range reduction. */ // Asin returns the arcsine, in radians, of x. // // Special cases are: // // Asin(±0) = ±0 // Asin(x) = NaN if x < -1 or x > 1 func Asin(x float64) float64 { if haveArchAsin { return archAsin(x) } return asin(x) } func asin(x float64) float64 { if x == 0 { return x // special case } sign := false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 1.1K bytes - Viewed (0) -
src/math/cmplx/sin.go
// // then // // w = sin x cosh y + i cos x sinh y. // // csin(z) = -i csinh(iz). // // ACCURACY: // // Relative error: // arithmetic domain # trials peak rms // DEC -10,+10 8400 5.3e-17 1.3e-17 // IEEE -10,+10 30000 3.8e-16 1.0e-16 // Also tested by csin(casin(z)) = z. // Sin returns the sine of x.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 17:59:44 UTC 2022 - 4.8K bytes - Viewed (0) -
src/math/cmplx/cmath_test.go
} } } func TestAsin(t *testing.T) { for i := 0; i < len(vc); i++ { if f := Asin(vc[i]); !cSoclose(asin[i], f, 1e-14) { t.Errorf("Asin(%g) = %g, want %g", vc[i], f, asin[i]) } } for _, v := range asinSC { if f := Asin(v.in); !cAlike(v.want, f) { t.Errorf("Asin(%g) = %g, want %g", v.in, f, v.want) } if math.IsNaN(imag(v.in)) || math.IsNaN(imag(v.want)) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 03:16:37 UTC 2020 - 48.1K bytes - Viewed (0) -
src/math/arith_s390x_test.go
t.Skipf("no vector support") } for i := 0; i < len(vf); i++ { a := vf[i] / 10 if f := AsinNovec(a); !veryclose(asin[i], f) { t.Errorf("Asin(%g) = %g, want %g", a, f, asin[i]) } } for i := 0; i < len(vfasinSC); i++ { if f := AsinNovec(vfasinSC[i]); !alike(asinSC[i], f) { t.Errorf("Asin(%g) = %g, want %g", vfasinSC[i], f, asinSC[i]) } } } func TestAcoshNovec(t *testing.T) { if !HasVX {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 08 19:52:30 UTC 2017 - 10.8K bytes - Viewed (0) -
src/math/export_s390x_test.go
// Export internal functions and variable for testing. var Log10NoVec = log10 var CosNoVec = cos var CoshNoVec = cosh var SinNoVec = sin var SinhNoVec = sinh var TanhNoVec = tanh var Log1pNovec = log1p var AtanhNovec = atanh var AcosNovec = acos var AcoshNovec = acosh var AsinNovec = asin var AsinhNovec = asinh var ErfNovec = erf var ErfcNovec = erfc var AtanNovec = atan var Atan2Novec = atan2 var CbrtNovec = cbrt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 08 19:52:30 UTC 2017 - 732 bytes - Viewed (0) -
tensorflow/cc/gradients/math_grad_test.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 25 18:20:20 UTC 2023 - 36K bytes - Viewed (0) -
src/math/example_test.go
// Output: 0.00 } func ExampleCosh() { fmt.Printf("%.2f", math.Cosh(0)) // Output: 1.00 } func ExampleSin() { fmt.Printf("%.2f", math.Sin(math.Pi)) // Output: 0.00 } func ExampleSincos() { sin, cos := math.Sincos(0) fmt.Printf("%.2f, %.2f", sin, cos) // Output: 0.00, 1.00 } func ExampleSinh() { fmt.Printf("%.2f", math.Sinh(0)) // Output: 0.00 } func ExampleTan() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 07 18:09:53 UTC 2021 - 3.7K bytes - Viewed (0)