Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- piChudnovsky :: MathContext -> BigDecimal
- sqr :: BigDecimal -> MathContext -> BigDecimal
- nthRoot :: BigDecimal -> Integer -> MathContext -> BigDecimal
Documentation
piChudnovsky :: MathContext -> BigDecimal Source #
Compute pi using rounding mode and scale of the specified MathContext Sources: https://wiki.haskell.org/Integers_too_big_for_floats & https://github.com/eobermuhlner/big-math
sqr :: BigDecimal -> MathContext -> BigDecimal Source #
computes the square root of any non-negative BigDecimal, rounding and precision defined by MathContext. We are using Newton's algorithm.
nthRoot :: BigDecimal -> Integer -> MathContext -> BigDecimal Source #