haskell / math-functions

Special mathematical functions
http://hackage.haskell.org/package/math-functions
BSD 2-Clause "Simplified" License
41 stars 28 forks source link

Failure in invIncompleteGamma = gamma^-1: #57

Closed Shimuuar closed 5 years ago

Shimuuar commented 5 years ago

NaN looks suspiciously

*** Failed! Falsifiable (after 42 tests and 3 shrinks):
-1.0e-3
-39.015782564394144
a    = 1.0e-3
p    = 1.5782564394143606e-2
x    = 0.0
p'   = 0.0
err  = 1.0
pred = NaN
(used seed -46209551813637022)
Shimuuar commented 5 years ago

Fixed in d514126b6cb3613611c59dd4f690f3461b14478c