| Copyright | (c) Edward Kmett 2013 |
|---|---|
| License | BSD3 |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Approximate.Numerics
Description
These functions provide wildly inaccurate but very fast approximations to common transcendental functions.
The algorithms here are based on Martin Ankerl's optimized pow,
http://martin.ankerl.com/2007/10/04/optimized-pow-approximation-for-java-and-c-c/
which is in turn based on
http://nic.schraudolph.org/pubs/Schraudolph99.pdf
Documentation
class Floating a => Fast a where Source #
Methods
Calculate an approximate log.
Calculate an approximate exp.
Calculate an approximate pow.
Instances
| Fast Double Source # | |
Defined in Data.Approximate.Numerics Methods flog :: Double -> Double Source # flog_lb :: Double -> Double Source # flog_ub :: Double -> Double Source # fexp :: Double -> Double Source # fexp_lb :: Double -> Double Source # fexp_ub :: Double -> Double Source # fpow :: Double -> Double -> Double Source # | |
| Fast Float Source # | |
Defined in Data.Approximate.Numerics | |