exp-extended

floating point with extended exponent range

https://code.mathr.co.uk/exp-extended

Latest on Hackage:0.2@rev:1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Claude Heiland-Allen
Maintained by [email protected]

A small library to extend floating point types with a larger exponent, so that you can represent really huge or really tiny numbers without overflow to infinity or underflow to zero.

> unExpExtended . log . exp .          expExtended' $ 1000
1000.0
>                 log . exp                         $ 1000
Infinity
> unExpExtended . log . exp . negate . expExtended' $ 1000
-1000.0
>                 log . exp . negate                $ 1000
-Infinity

Version 0.2 has lighter dependencies and fixes an overflow bug in expm1.