- Floating <A>
- Pi ()
- Exp (A x)
- Sqrt (A x)
- Log (A x)
- Pow (A x, A y)
- LogBase (A x, A y)
- Sin (A x)
- Cos (A x)
- Tan (A x)
- Asin (A x)
- Acos (A x)
- Atan (A x)
- Sinh (A x)
- Cosh (A x)
- Tanh (A x)
- Asinh (A x)
- Acosh (A x)
- Atanh (A x)
- Trait
- 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 trait
type | A | The floating point value type |
Returns an approximation of pi.
returns | A reasonable approximation of pi in this type |
The exponential function.
param | x | The value for which we are calculating the exponential |
returns |
Calculates the square root of a value.
param | x | The value for which we are calculating the square root. |
returns | . |
Calculates the natural logarithm of a value.
param | x | The value for which we are calculating the natural logarithm. |
returns | . |
method A Pow (A x, A y) Source #
Raises x to the power y
param | x | The base to be raised to y |
param | y | The exponent to which we are raising x |
returns | . |
method A LogBase (A x, A y) Source #
Calculates the logarithm of a value with respect to an arbitrary base.
param | x | The base to use for the logarithm of t |
param | y | The value for which we are calculating the logarithm. |
returns | . |
Calculates the tangent of an angle.
param | x | An angle, in radians |
returns |
Calculates an arcsine.
param | x | The value for which an arcsine is to be calculated. |
returns | , in radians. |
Calculates an arc-cosine.
param | x | The value for which an arc-cosine is to be calculated |
returns | , in radians |
Calculates an arc-tangent.
param | x | The value for which an arc-tangent is to be calculated |
returns | , in radians |
Calculates a hyperbolic sine.
param | x | The value for which a hyperbolic sine is to be calculated |
returns |
Calculates a hyperbolic cosine.
param | x | The value for which a hyperbolic cosine is to be calculated |
returns |
Calculates a hyperbolic tangent.
param | x | The value for which a hyperbolic tangent is to be calculated. |
returns |
Calculates an area hyperbolic sine
param | x | The value for which an area hyperbolic sine is to be calculated. |
returns | . |
Calculates an area hyperbolic cosine.
param | x | The value for which an area hyperbolic cosine is to be calculated. |
returns | . |
method Ratio<A> Ratio <A> (A num, A den) Source #
Ratio constructor
type | A | Value type |
param | num | Numerator |
param | den | Denominator |
returns | Ratio struct |
method A pi <FLOAT, A> () Source #
Returns an approximation of pi.
returns | A reasonable approximation of pi in this type |
method A exp <FLOAT, A> (A x) Source #
The exponential function.
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.
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.
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
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.
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.
param | x | An angle, in radians |
returns |
method A cos <FLOAT, A> (A x) Source #
Calculates the cosine of an angle.
param | x | An angle, in radians |
returns |
method A tan <FLOAT, A> (A x) Source #
Calculates the tangent of an angle.
param | x | An angle, in radians |
returns |
method A asin <FLOAT, A> (A x) Source #
Calculates an arcsine.
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.
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.
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.
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.
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.
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
param | x | The value for which an area hyperbolic sine is to be calculated. |
returns | . |