definition:
|
class Fractional a => Floating a where
pi :: a
exp, log, sqrt :: a -> a
(**), logBase :: a -> a -> a
sin, cos, tan :: a -> a
asin, acos, atan :: a -> a
sinh, cosh, tanh :: a -> a
asinh, acosh, atanh :: a -> a
sqrt x = x ** 0.5
x ** y = exp (log x * y)
logBase x y = log y / log x
tan x = sin x / cos x
tanh x = sinh x / cosh x
|
methods:
|
["pi :: a","exp :: a -> a","log :: a -> a","sqrt 1 :: a -> a","(**) 2 :: a -> a -> a","logBase 2 :: a -> a -> a","sin :: a -> a","cos :: a -> a","tan 1 :: a -> a","asin :: a -> a","acos :: a -> a","atan :: a -> a","sinh :: a -> a","cosh :: a -> a","tanh 1 :: a -> a","asinh :: a -> a","acosh :: a -> a","atanh :: a -> a"]
|