Removing underflow panic condition
MODIFY
internal/cephes/cephes.go
internal/cephes/cephes.go
@@ -18,7 +18,6 @@ https://lists.debian.org/debian-legal/2004/12/msg00295.html
var (
badParamOutOfBounds = "cephes: parameter out of bounds"
- badParamUnderflow = "cephes: underflow error"
badParamFunctionSingularity = "cephes: function singularity"
)

MODIFY
internal/cephes/igam.go
internal/cephes/igam.go
@@ -142,9 +142,6 @@ func IgamC(a, x float64) float64 {
func igamFac(a, x float64) float64 {
if math.Abs(a-x) > 0.4*math.Abs(a) {
ax := a*math.Log(x) - x - lgam(a)
- if ax < -maxLog {
- panic(badParamUnderflow)
- }
return math.Exp(ax)
}

Removing underflow panic condition