hmpfr-0.4.1: Haskell binding to the MPFR library

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

Data.Number.MPFR.Instances.Zero

Contents

Description

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

Orphan instances

Floating MPFR Source # 

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 Source # 

Methods

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

recip :: MPFR -> MPFR #

fromRational :: Rational -> MPFR #

Num MPFR Source # 

Methods

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

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

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

negate :: MPFR -> MPFR #

abs :: MPFR -> MPFR #

signum :: MPFR -> MPFR #

fromInteger :: Integer -> MPFR #

Real MPFR Source # 

Methods

toRational :: MPFR -> Rational #

RealFrac MPFR Source # 

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 #