| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Biobase.Types.NumericalExtremes
Description
For some values, we want to have different kind of extreme values.
Consider a Double representing an energy. We want near infinities
that do not lead to numeric problems.
TODO benchmark different extremes and their interplay with algebraic operations.
TODO consider the ieee754 package
- class NumericalExtremes x where
- class NumericalEpsilon x where
Documentation
class NumericalExtremes x where Source #
Very large and small numbers with some numerical safety to 1/0 or
maxBound (depending on if we are Integral or RealFloat.
We have:
maxFinite >= maxExtreme >= maxLarge
maxLarge >= minLarge
minLarge >= minExtreme >= minFinite.
Minimal complete definition
maxFinite, minFinite, maxExtreme, minExtreme, maxLarge, minLarge