hmpfr-0.4.4: Haskell binding to the MPFR library

Copyright(c) Aleš Bizjak
LicenseBSD3
Maintainermikkonecny@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell98

Data.Number.MPFR.Instances.Down

Contents

Description

This module defines instances Num, Real, Fractional, Floating and RealFrac of MPFR. Operations are rounded with RoundMode Down and computed with maximum precision of two operands or with the precision of the operand.

Orphan instances

Floating MPFR # 

Methods

pi :: MPFR #

exp :: MPFR -> MPFR #

log :: MPFR -> MPFR #

sqrt :: MPFR -> MPFR #

(**) :: MPFR -> MPFR -> MPFR #

logBase :: MPFR -> MPFR -> MPFR #

sin :: MPFR -> MPFR #

cos :: MPFR -> MPFR #

tan :: MPFR -> MPFR #

asin :: MPFR -> MPFR #

acos :: MPFR -> MPFR #

atan :: MPFR -> MPFR #

sinh :: MPFR -> MPFR #

cosh :: MPFR -> MPFR #

tanh :: MPFR -> MPFR #

asinh :: MPFR -> MPFR #

acosh :: MPFR -> MPFR #

atanh :: MPFR -> MPFR #

log1p :: MPFR -> MPFR #

expm1 :: MPFR -> MPFR #

log1pexp :: MPFR -> MPFR #

log1mexp :: MPFR -> MPFR #

Fractional MPFR # 

Methods

(/) :: MPFR -> MPFR -> MPFR #

recip :: MPFR -> MPFR #

fromRational :: Rational -> MPFR #

Num MPFR # 

Methods

(+) :: MPFR -> MPFR -> MPFR #

(-) :: MPFR -> MPFR -> MPFR #

(*) :: MPFR -> MPFR -> MPFR #

negate :: MPFR -> MPFR #

abs :: MPFR -> MPFR #

signum :: MPFR -> MPFR #

fromInteger :: Integer -> MPFR #

Real MPFR # 

Methods

toRational :: MPFR -> Rational #

RealFloat MPFR # 
RealFrac MPFR # 

Methods

properFraction :: Integral b => MPFR -> (b, MPFR) #

truncate :: Integral b => MPFR -> b #

round :: Integral b => MPFR -> b #

ceiling :: Integral b => MPFR -> b #

floor :: Integral b => MPFR -> b #