Portability | portable |
---|---|
Stability | unstable |
Maintainer | claude@mathr.co.uk |
Safe Haskell | None |
High-level interface to libqd for quad-double numbers.
- data QuadDouble = QuadDouble !CDouble !CDouble !CDouble !CDouble
- toDouble :: QuadDouble -> Double
- fromDouble :: Double -> QuadDouble
- toDoubleDouble :: QuadDouble -> DoubleDouble
- fromDoubleDouble :: DoubleDouble -> QuadDouble
- sqr :: QuadDouble -> QuadDouble
Documentation
data QuadDouble Source
represents the unevaluated sum QuadDouble
a b c da + b + c + d
.
toDouble :: QuadDouble -> DoubleSource
Convert to Double
.
fromDouble :: Double -> QuadDoubleSource
Convert from Double
.
toDoubleDouble :: QuadDouble -> DoubleDoubleSource
Convert to DoubleDouble
.
fromDoubleDouble :: DoubleDouble -> QuadDoubleSource
Convert from DoubleDouble
.
sqr :: QuadDouble -> QuadDoubleSource
Square a QuadDouble
number.