- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for sinhcosh (0.11 sec)
-
src/math/cmplx/sin.go
return complex(math.Inf(1), math.NaN()) } case im == 0 && math.IsNaN(re): return complex(math.NaN(), im) } s, c := math.Sincos(imag(x)) sh, ch := sinhcosh(real(x)) return complex(c*ch, s*sh) } // calculate sinh and cosh. func sinhcosh(x float64) (sh, ch float64) { if math.Abs(x) <= 0.5 { return math.Sinh(x), math.Cosh(x) } e := math.Exp(x) ei := 0.5 / e e *= 0.5
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/sincos.go
// license that can be found in the LICENSE file. package math // Coefficients _sin[] and _cos[] are found in pkg/math/sin.go. // Sincos returns Sin(x), Cos(x). // // Special cases are: // // Sincos(±0) = ±0, 1 // Sincos(±Inf) = NaN, NaN // Sincos(NaN) = NaN, NaN func Sincos(x float64) (sin, cos float64) { const ( PI4A = 7.85398125648498535156e-1 // 0x3fe921fb40000000, Pi/4 split into three parts
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/huge_test.go
for i := 0; i < len(trigHuge); i++ { f1, g1 := sinHuge[i], cosHuge[i] f2, g2 := Sincos(trigHuge[i]) if !close(f1, f2) || !close(g1, g2) { t.Errorf("Sincos(%g) = %g, %g, want %g, %g", trigHuge[i], f2, g2, f1, g1) } f3, g3 := Sincos(-trigHuge[i]) if !close(-f1, f3) || !close(g1, g3) { t.Errorf("Sincos(%g) = %g, %g, want %g, %g", -trigHuge[i], f3, g3, -f1, g1) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 31 16:23:41 UTC 2023 - 2.9K bytes - Viewed (0) -
src/math/cmplx/rect.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 348 bytes - Viewed (0) -
src/math/cmplx/exp.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 03:16:37 UTC 2020 - 2.1K bytes - Viewed (0) -
src/math/cmplx/pow.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 2.3K bytes - Viewed (0) -
src/math/jn.go
// 1 -s-c -c+s // 2 -s+c -c-s // 3 s+c c-s var temp float64 switch s, c := Sincos(x); n & 3 { case 0: temp = c + s case 1: temp = -c + s case 2: temp = -c - s case 3: temp = c - s } b = (1 / SqrtPi) * temp / Sqrt(x) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 7.2K bytes - Viewed (0) -
src/math/example_test.go
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() { fmt.Printf("%.2f", math.Tan(0))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 07 18:09:53 UTC 2021 - 3.7K bytes - Viewed (0) -
src/math/j1.go
) // special cases switch { case IsNaN(x): return x case IsInf(x, 0) || x == 0: return 0 } sign := false if x < 0 { x = -x sign = true } if x >= 2 { s, c := Sincos(x) ss := -s - c cc := s - c // make sure x+x does not overflow if x < MaxFloat64/2 { z := Cos(x + x) if s*c > 0 { cc = z / ss } else { ss = z / cc } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 13.3K bytes - Viewed (0) -
src/math/j0.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 13.6K bytes - Viewed (0)