haskell / math-functions

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

test "erf table" failing #63

Closed vcunat closed 1 year ago

vcunat commented 4 years ago
      erf table:                                             FAIL
        tests/Tests/SpecFunctions.hs:444:
         x         = -4.0e-2
         expected  = -4.511110614512475e-2
         got       = -4.511110614512474e-2
         ulps diff = 2
         err.est.  = 1

It's math-functions-0.3.4.0 + ghc-8.8.3 + x86_64 macOS + nix packager.

Shimuuar commented 4 years ago

erf normally just wraps function from libc. I guess macos uses different libc.

vcunat commented 4 years ago

Yes, they certainly do :-)

Shimuuar commented 1 year ago

Should be fixed in 0.3.4.3