- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for isNegInt (1.29 sec)
-
src/math/gamma.go
// Gamma(-Inf) = NaN // Gamma(NaN) = NaN func Gamma(x float64) float64 { const Euler = 0.57721566490153286060651209008240243104215933593992 // A001620 // special cases switch { case isNegInt(x) || IsInf(x, -1) || IsNaN(x): return NaN() case IsInf(x, 1): return Inf(1) case x == 0: if Signbit(x) { return Inf(-1) } return Inf(1) } q := Abs(x) p := Floor(q)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 5.5K bytes - Viewed (0)