- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 72 for IsNan (0.03 sec)
-
src/math/cmplx/exp.go
case math.IsInf(re, 0): switch { case re > 0 && im == 0: return x case math.IsInf(im, 0) || math.IsNaN(im): if re < 0 { return complex(0, math.Copysign(0, im)) } else { return complex(math.Inf(1.0), math.NaN()) } } case math.IsNaN(re): if im == 0 { return complex(math.NaN(), im) } } r := math.Exp(real(x)) s, c := math.Sincos(imag(x))
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/exp_arm64.s
// This is an assembly implementation of the method used for function Exp in file exp.go. // // func Exp(x float64) float64 TEXT ·archExp(SB),$0-16 FMOVD x+0(FP), F0 // F0 = x FCMPD F0, F0 BNE isNaN // x = NaN, return NaN FMOVD $Overflow, F1 FCMPD F1, F0 BGT overflow // x > Overflow, return PosInf FMOVD $Underflow, F1 FCMPD F1, F0 BLT underflow // x < Underflow, return 0 MOVD $NearZero, R0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 15 15:48:19 UTC 2021 - 5.4K bytes - Viewed (0) -
src/math/atan2.go
func Atan2(y, x float64) float64 { if haveArchAtan2 { return archAtan2(y, x) } return atan2(y, x) } func atan2(y, x float64) float64 { // special cases switch { case IsNaN(y) || IsNaN(x): return NaN() case y == 0: if x >= 0 && !Signbit(x) { return Copysign(0, y) } return Copysign(Pi, y) case x == 0: return Copysign(Pi/2, y) case IsInf(x, 0): if IsInf(x, 1) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 1.5K bytes - Viewed (0) -
test/typeparam/sliceimp.dir/a.go
func Equal[Elem comparable](s1, s2 []Elem) bool { if len(s1) != len(s2) { return false } for i, v1 := range s1 { v2 := s2[i] if v1 != v2 { isNaN := func(f Elem) bool { return f != f } if !isNaN(v1) || !isNaN(v2) { return false } } } return true } // EqualFn reports whether two slices are equal using a comparison // function on each element.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 30 01:55:58 UTC 2021 - 3.3K bytes - Viewed (0) -
src/runtime/softfloat64_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 4K bytes - Viewed (0) -
src/math/floor.go
// Floor(±0) = ±0 // Floor(±Inf) = ±Inf // Floor(NaN) = NaN func Floor(x float64) float64 { if haveArchFloor { return archFloor(x) } return floor(x) } func floor(x float64) float64 { if x == 0 || IsNaN(x) || IsInf(x, 0) { return x } if x < 0 { d, fract := Modf(-x) if fract != 0.0 { d = d + 1 } return -d } d, _ := Modf(x) return d }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 3.3K bytes - Viewed (0) -
test/typeparam/metrics.go
func _SlicesEqual[Elem comparable](s1, s2 []Elem) bool { if len(s1) != len(s2) { return false } for i, v1 := range s1 { v2 := s2[i] if v1 != v2 { isNaN := func(f Elem) bool { return f != f } if !isNaN(v1) || !isNaN(v2) { return false } } } return true } // _Keys returns the keys of the map m. // The keys will be an indeterminate order.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 4.4K bytes - Viewed (0) -
test/typeparam/graph.go
func _SliceEqual[Elem comparable](s1, s2 []Elem) bool { if len(s1) != len(s2) { return false } for i, v1 := range s1 { v2 := s2[i] if v1 != v2 { isNaN := func(f Elem) bool { return f != f } if !isNaN(v1) || !isNaN(v2) { return false } } } return true } // A Graph is a collection of nodes. A node may have an arbitrary number
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 5.7K bytes - Viewed (0) -
src/math/cmplx/tan.go
switch re, im := real(x), imag(x); { case math.IsInf(im, 0): switch { case math.IsInf(re, 0) || math.IsNaN(re): return complex(math.Copysign(0, re), math.Copysign(1, im)) } return complex(math.Copysign(0, math.Sin(2*re)), math.Copysign(1, im)) case re == 0 && math.IsNaN(im): return x } d := math.Cos(2*real(x)) + math.Cosh(2*imag(x)) if math.Abs(d) < 0.25 { d = tanSeries(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 03:16:37 UTC 2020 - 8.5K bytes - Viewed (0) -
test/typeparam/orderedmapsimp.dir/a.go
func SliceEqual[Elem comparable](s1, s2 []Elem) bool { if len(s1) != len(s2) { return false } for i, v1 := range s1 { v2 := s2[i] if v1 != v2 { isNaN := func(f Elem) bool { return f != f } if !isNaN(v1) || !isNaN(v2) { return false } } } return true } // Ranger returns a Sender and a Receiver. The Receiver provides a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 28 21:40:40 UTC 2021 - 5.5K bytes - Viewed (0)