numbers-3000.2.0.2: Various number types
Data.Number.CReal
Synopsis
data CReal Source #
The CReal type implements (constructive) real numbers.
CReal
Note that the comparison operations on CReal may diverge since it is (by necessity) impossible to implementent them correctly and always terminating.
This implementation is really David Lester's ERA package.
Instances
Methods
succ :: CReal -> CReal #
pred :: CReal -> CReal #
toEnum :: Int -> CReal #
fromEnum :: CReal -> Int #
enumFrom :: CReal -> [CReal] #
enumFromThen :: CReal -> CReal -> [CReal] #
enumFromTo :: CReal -> CReal -> [CReal] #
enumFromThenTo :: CReal -> CReal -> CReal -> [CReal] #
(==) :: CReal -> CReal -> Bool #
(/=) :: CReal -> CReal -> Bool #
pi :: CReal #
exp :: CReal -> CReal #
log :: CReal -> CReal #
sqrt :: CReal -> CReal #
(**) :: CReal -> CReal -> CReal #
logBase :: CReal -> CReal -> CReal #
sin :: CReal -> CReal #
cos :: CReal -> CReal #
tan :: CReal -> CReal #
asin :: CReal -> CReal #
acos :: CReal -> CReal #
atan :: CReal -> CReal #
sinh :: CReal -> CReal #
cosh :: CReal -> CReal #
tanh :: CReal -> CReal #
asinh :: CReal -> CReal #
acosh :: CReal -> CReal #
atanh :: CReal -> CReal #
log1p :: CReal -> CReal #
expm1 :: CReal -> CReal #
log1pexp :: CReal -> CReal #
log1mexp :: CReal -> CReal #
(/) :: CReal -> CReal -> CReal #
recip :: CReal -> CReal #
fromRational :: Rational -> CReal #
(+) :: CReal -> CReal -> CReal #
(-) :: CReal -> CReal -> CReal #
(*) :: CReal -> CReal -> CReal #
negate :: CReal -> CReal #
abs :: CReal -> CReal #
signum :: CReal -> CReal #
fromInteger :: Integer -> CReal #
compare :: CReal -> CReal -> Ordering #
(<) :: CReal -> CReal -> Bool #
(<=) :: CReal -> CReal -> Bool #
(>) :: CReal -> CReal -> Bool #
(>=) :: CReal -> CReal -> Bool #
max :: CReal -> CReal -> CReal #
min :: CReal -> CReal -> CReal #
readsPrec :: Int -> ReadS CReal #
readList :: ReadS [CReal] #
readPrec :: ReadPrec CReal #
readListPrec :: ReadPrec [CReal] #
toRational :: CReal -> Rational #
floatRadix :: CReal -> Integer #
floatDigits :: CReal -> Int #
floatRange :: CReal -> (Int, Int) #
decodeFloat :: CReal -> (Integer, Int) #
encodeFloat :: Integer -> Int -> CReal #
exponent :: CReal -> Int #
significand :: CReal -> CReal #
scaleFloat :: Int -> CReal -> CReal #
isNaN :: CReal -> Bool #
isInfinite :: CReal -> Bool #
isDenormalized :: CReal -> Bool #
isNegativeZero :: CReal -> Bool #
isIEEE :: CReal -> Bool #
atan2 :: CReal -> CReal -> CReal #
properFraction :: Integral b => CReal -> (b, CReal) #
truncate :: Integral b => CReal -> b #
round :: Integral b => CReal -> b #
ceiling :: Integral b => CReal -> b #
floor :: Integral b => CReal -> b #
showsPrec :: Int -> CReal -> ShowS #
show :: CReal -> String #
showList :: [CReal] -> ShowS #
showCReal Source #
Arguments
The number of decimals
The real number
The resulting string
The showCReal function connverts a CReal to a String.
showCReal
String