Current section

Files

Jump to
gleam_stats src gleam_stats@math.erl
Raw

src/gleam_stats@math.erl

-module(gleam_stats@math).
-compile(no_auto_import).
-export([sin/1, pi/0, tau/0, acos/1, acosh/1, asin/1, atan/1, atan2/2, atanh/1, cos/1, cosh/1, exp/1, ceil/1, floor/1, pow/2, log/1, log10/1, log2/1, sinh/1, tanh/1]).
-spec sin(float()) -> float().
sin(A) ->
math:sin(A).
-spec pi() -> float().
pi() ->
math:pi().
-spec tau() -> float().
tau() ->
2.0 * math:pi().
-spec acos(float()) -> float().
acos(A) ->
math:acos(A).
-spec acosh(float()) -> float().
acosh(A) ->
math:acosh(A).
-spec asin(float()) -> float().
asin(A) ->
math:asin(A).
-spec atan(float()) -> float().
atan(A) ->
math:atan(A).
-spec atan2(float(), float()) -> float().
atan2(A, B) ->
math:atan2(A, B).
-spec atanh(float()) -> float().
atanh(A) ->
math:atanh(A).
-spec cos(float()) -> float().
cos(A) ->
math:cos(A).
-spec cosh(float()) -> float().
cosh(A) ->
math:cosh(A).
-spec exp(float()) -> float().
exp(A) ->
math:exp(A).
-spec ceil(float()) -> float().
ceil(A) ->
math:ceil(A).
-spec floor(float()) -> float().
floor(A) ->
math:floor(A).
-spec pow(float(), float()) -> float().
pow(A, B) ->
math:pow(A, B).
-spec log(float()) -> float().
log(A) ->
math:log(A).
-spec log10(float()) -> float().
log10(A) ->
math:log10(A).
-spec log2(float()) -> float().
log2(A) ->
math:log2(A).
-spec sinh(float()) -> float().
sinh(A) ->
math:sinh(A).
-spec tanh(float()) -> float().
tanh(A) ->
math:tanh(A).