View Source math (stdlib v6.0)
Mathematical functions.
This module provides an interface to a number of mathematical functions.
Note
Not all functions are provided on all platforms. In particular, the
erf/1
anderfc/1
functions are not provided on Windows.
Limitations
As these are the C library, the same limitations apply.
Summary
Functions
Equivalent to tanh/1
Equivalent to tanh/1
Equivalent to tanh/1
Equivalent to tanh/1
Equivalent to tanh/1
Equivalent to tanh/1
Equivalent to tanh/1
Equivalent to tanh/1
Equivalent to tanh/1
Equivalent to tanh/1
Returns the error function of X
, where:
erf(X) = 2/sqrt(pi)*integral from 0 to X of exp(-t*t) dt.
erfc(X)
returns 1.0
- erf(X)
, computed by methods
that avoid cancellation for large X
.
Equivalent to tanh/1
Equivalent to tanh/1
Equivalent to tanh/1
Equivalent to tanh/1
Equivalent to tanh/1
Equivalent to tanh/1
-spec pi() -> float().
Ratio of the circumference of a circle to its diameter.
Floating point approximation of mathematical constant pi.
Equivalent to tanh/1
Equivalent to tanh/1
Equivalent to tanh/1
Equivalent to tanh/1
Equivalent to tanh/1
A collection of mathematical functions that return floats. Arguments are numbers.
-spec tau() -> float().
Ratio of the circumference of a circle to its radius.
This constant is equivalent to a full turn when described in radians.
The same as 2 * pi()
.