Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.BigFloating
Contents
Synopsis
- piChudnovsky :: RoundingAdvice -> BigDecimal
- sqr :: BigDecimal -> RoundingAdvice -> BigDecimal
- nthRoot :: BigDecimal -> Natural -> RoundingAdvice -> BigDecimal
Documentation
piChudnovsky :: RoundingAdvice -> BigDecimal Source #
Compute pi using rounding mode and scale of the specified RoundingAdvice Sources: https://wiki.haskell.org/Integers_too_big_for_floats & https://github.com/eobermuhlner/big-math
sqr :: BigDecimal -> RoundingAdvice -> BigDecimal Source #
computes the square root of any non-negative BigDecimal, rounding and precision defined by RoundingAdvice. We are using Newton's algorithm.
nthRoot :: BigDecimal -> Natural -> RoundingAdvice -> BigDecimal Source #
Orphan instances
Floating BigDecimal Source # | |
Methods pi :: BigDecimal # exp :: BigDecimal -> BigDecimal # log :: BigDecimal -> BigDecimal # sqrt :: BigDecimal -> BigDecimal # (**) :: BigDecimal -> BigDecimal -> BigDecimal # logBase :: BigDecimal -> BigDecimal -> BigDecimal # sin :: BigDecimal -> BigDecimal # cos :: BigDecimal -> BigDecimal # tan :: BigDecimal -> BigDecimal # asin :: BigDecimal -> BigDecimal # acos :: BigDecimal -> BigDecimal # atan :: BigDecimal -> BigDecimal # sinh :: BigDecimal -> BigDecimal # cosh :: BigDecimal -> BigDecimal # tanh :: BigDecimal -> BigDecimal # asinh :: BigDecimal -> BigDecimal # acosh :: BigDecimal -> BigDecimal # atanh :: BigDecimal -> BigDecimal # log1p :: BigDecimal -> BigDecimal # expm1 :: BigDecimal -> BigDecimal # log1pexp :: BigDecimal -> BigDecimal # log1mexp :: BigDecimal -> BigDecimal # |