gleam_stats/math
A module containing several mathematical functions.
- Mathematical functions
- Mathematical constants
Functions
pub external fn acos(Float) -> Float
The inverse cosine function. Wrapped from the Erlang math library.
pub external fn acosh(Float) -> Float
The inverse hyperbolic cosine function. Wrapped from the Erlang math library.
pub external fn asin(Float) -> Float
The inverse sine function. Wrapped from the Erlang math library.
pub external fn atan(Float) -> Float
The inverse tangent function. Wrapped from the Erlang math library.
pub external fn atan2(Float, Float) -> Float
The inverse 2-argument tangent function. Wrapped from the Erlang math library.
pub external fn atanh(Float) -> Float
The inverse hyperbolic tangent function. Wrapped from the Erlang math library.
pub external fn ceil(Float) -> Float
The ceiling function. Wrapped from the Erlang math library.
pub external fn cos(Float) -> Float
The cosine function. Wrapped from the Erlang math library.
pub external fn cosh(Float) -> Float
The hyperbolic cosine function. Wrapped from the Erlang math library.
pub external fn exp(Float) -> Float
The exponential function. Wrapped from the Erlang math library.
pub external fn floor(Float) -> Float
pub external fn log(Float) -> Float
The natural logarithm function. Wrapped from the Erlang math library.
pub external fn log10(Float) -> Float
The base-10 logarithm function. Wrapped from the Erlang math library.
pub external fn log2(Float) -> Float
The base-2 logarithm function. Wrapped from the Erlang math library.
pub external fn pi() -> Float
The mathematical constant pi. Wrapped from the Erlang math library.
pub external fn pow(Float, Float) -> Float
The exponentiation function. Wrapped from the Erlang math library.
pub external fn sin(Float) -> Float
pub external fn sinh(Float) -> Float
The hyperbolic sine function. Wrapped from the Erlang math library.
pub external fn tanh(Float) -> Float
The hyperbolic tangent function. Wrapped from the Erlang math library.
pub fn tau() -> Float