Contents
- Floating <A>
 - TypeClass
 - Ratio <A> (A num, A den)
 - pi <FLOAT, A> ()
 - exp <FLOAT, A> (A x)
 - sqrt <FLOAT, A> (A x)
 - log <FLOAT, A> (A x)
 - pow <FLOAT, A> (A x, A y)
 - logBase <FLOAT, A> (A x, A y)
 - sin <FLOAT, A> (A x)
 - cos <FLOAT, A> (A x)
 - tan <FLOAT, A> (A x)
 - asin <FLOAT, A> (A x)
 - acos <FLOAT, A> (A x)
 - atan <FLOAT, A> (A x)
 - sinh <FLOAT, A> (A x)
 - cosh <FLOAT, A> (A x)
 - tanh <FLOAT, A> (A x)
 - asinh <FLOAT, A> (A x)
 - acosh <FLOAT, A> (A x)
 - atanh <FLOAT, A> (A x)
 
interface Floating <A> Source #
Floating point number type-class
Parameters
| type | A | The floating point value type  | 
Methods
method Ratio<A> Ratio <A> (A num, A den) Source #
Ratio constructor
Parameters
| type | A | Value type  | 
| param | num | Numerator  | 
| param | den | Denominator  | 
| returns | Ratio struct  | |
method A pi <FLOAT, A> () Source #
Returns an approximation of pi.
Parameters
| returns | A reasonable approximation of pi in this type  | |
method A exp <FLOAT, A> (A x) Source #
The exponential function.
Parameters
| param | x | The value for which we are calculating the exponential  | 
| returns | ||
method A sqrt <FLOAT, A> (A x) Source #
Calculates the square root of a value.
Parameters
| param | x | The value for which we are calculating the square root.  | 
| returns | .  | |
method A log <FLOAT, A> (A x) Source #
Calculates the natural logarithm of a value.
Parameters
| param | x | The value for which we are calculating the natural logarithm.  | 
| returns | .  | |
method A pow <FLOAT, A> (A x, A y) Source #
Raises x to the power y
Parameters
| param | x | The base to be raised to y  | 
| param | y | The exponent to which we are raising x  | 
| returns | .  | |
method A logBase <FLOAT, A> (A x, A y) Source #
Calculates the logarithm of a value with respect to an arbitrary base.
Parameters
| param | b | The base to use for the logarithm of x  | 
| param | x | The value for which we are calculating the logarithm.  | 
| returns | .  | |
method A sin <FLOAT, A> (A x) Source #
Calculates the sine of an angle.
Parameters
| param | x | An angle, in radians  | 
| returns | ||
method A cos <FLOAT, A> (A x) Source #
Calculates the cosine of an angle.
Parameters
| param | x | An angle, in radians  | 
| returns | ||
method A tan <FLOAT, A> (A x) Source #
Calculates the tangent of an angle.
Parameters
| param | x | An angle, in radians  | 
| returns | ||
method A asin <FLOAT, A> (A x) Source #
Calculates an arcsine.
Parameters
| param | x | The value for which an arcsine is to be calculated.  | 
| returns | , in radians.  | |
method A acos <FLOAT, A> (A x) Source #
Calculates an arc-cosine.
Parameters
| param | x | The value for which an arc-cosine is to be calculated  | 
| returns | , in radians  | |
method A atan <FLOAT, A> (A x) Source #
Calculates an arc-tangent.
Parameters
| param | x | The value for which an arc-tangent is to be calculated  | 
| returns | , in radians  | |
method A sinh <FLOAT, A> (A x) Source #
Calculates a hyperbolic sine.
Parameters
| param | x | The value for which a hyperbolic sine is to be calculated  | 
| returns | ||
method A cosh <FLOAT, A> (A x) Source #
Calculates a hyperbolic cosine.
Parameters
| param | x | The value for which a hyperbolic cosine is to be calculated  | 
| returns | ||
method A tanh <FLOAT, A> (A x) Source #
Calculates a hyperbolic tangent.
Parameters
| param | x | The value for which a hyperbolic tangent is to be calculated.  | 
| returns | ||
method A asinh <FLOAT, A> (A x) Source #
Calculates an area hyperbolic sine
Parameters
| param | x | The value for which an area hyperbolic sine is to be calculated.  | 
| returns | .  | |