Portability | portable |
---|---|
Stability | unstable |
Maintainer | claude@mathr.co.uk |
Safe Haskell | None |
High-level interface to libqd for double-double numbers.
- data DoubleDouble = DoubleDouble !CDouble !CDouble
- toDouble :: DoubleDouble -> Double
- fromDouble :: Double -> DoubleDouble
- sqr :: DoubleDouble -> DoubleDouble
Documentation
data DoubleDouble Source
represents the unevaluated sum DoubleDouble
a ba + b
.
toDouble :: DoubleDouble -> DoubleSource
Extract the first component and convert to Double
.
fromDouble :: Double -> DoubleDoubleSource
Convert from Double
by pairing with 0.
sqr :: DoubleDouble -> DoubleDoubleSource
Square a DoubleDouble
number.