Fraction
Documentation
data Fraction
Constructors
 (:-:) Integer Integer
Instances
 Enum Fraction Eq Fraction Fractional Fraction Num Fraction Ord Fraction Read Fraction Real Fraction RealFrac Fraction Show Fraction Transcendental Fraction
num :: Fraction -> Integer
den :: Fraction -> Integer
reduce :: Fraction -> Fraction
(//) :: Integer -> Integer -> Fraction
approx :: Fraction -> Fraction -> Fraction
numericEnumFrom :: Real a => a -> [a]
numericEnumFromThen :: Real a => a -> a -> [a]
numericEnumFromTo :: Real a => a -> a -> [a]
numericEnumFromThenTo :: Real a => a -> a -> a -> [a]
type CF = [(Fraction, Fraction)]
fromCF :: CF -> Fraction
toCF :: Fraction -> CF
approxCF :: Fraction -> CF -> Fraction
fromFraction :: Fraction -> Double
fac :: Integer -> Integer
integerRoot2 :: Integer -> Integer
class Transcendental a where
Methods
 pi' :: Fraction -> a tan' :: Fraction -> a -> a sin' :: Fraction -> a -> a cos' :: Fraction -> a -> a atan' :: Fraction -> a -> a asin' :: Fraction -> a -> a acos' :: Fraction -> a -> a sqrt' :: Fraction -> a -> a root' :: Fraction -> a -> Integer -> a power' :: Fraction -> a -> a -> a exp' :: Fraction -> a -> a tanh' :: Fraction -> a -> a sinh' :: Fraction -> a -> a cosh' :: Fraction -> a -> a atanh' :: Fraction -> a -> a asinh' :: Fraction -> a -> a acosh' :: Fraction -> a -> a log' :: Fraction -> a -> a decimal :: Integer -> a -> IO ()
Instances
 Transcendental Fraction