Return to Roc packages
Documentation
Math
▶
exp
reciprocal
natural_log
sigmoid
relu
sign
sign_int
Angle
▶
Angle
to_radians
to_degrees
to_turns
to_gon
is_approx_eq
is_nan
to_str
Arithmetic
▶
gcd
lcm
divides
divisors
proper_divisors
is_prime
prime_factors
is_perfect
Combinatorics
▶
factorial
choose
Complex
▶
Complex
i
zero
from_real
from_imag
from_tuple
to_tuple
add
sub
mul
div
reciprocal
abs
arg
to_polar
is_approx_eq
Const
▶
pi
π
tau
τ
e
ℯ
golden_ratio
φ
sqrt2
Stats
▶
mean
mean_unchecked
variance
variance_unchecked
variance_with_mean
mean_and_variance
mean_and_variance_unchecked
standard_deviation
nth_sample_moment
nth_sample_moment_unchecked
nth_sample_moment_with_mean
median
median_unchecked
range
Trig
▶
sin
cos
tan
asin
acos
atan
sinh
cosh
tanh
coth
sech
csch
(press
s
)
Math
.
exp
: F64 -> F64
Math
.
reciprocal
: Num * -> F64
Math
.
natural_log
: F64 -> F64
Math
.
sigmoid
: Num * -> F64
Math
.
relu
: Num a -> Num a
Math
.
sign
: F64 -> [ PositiveNumber, NegativeNumber, Zero, NaN, PositiveInfinity, NegativeInfinity ]
Math
.
sign_int
: Int * -> [ PositiveNumber, NegativeNumber, Zero ]
Angle
.
Angle
Angle
.
to_radians
: Angle -> [Radians F64]
Angle
.
to_degrees
: Angle -> [Degrees F64]
Angle
.
to_turns
: Angle -> [Turns F64]
Angle
.
to_gon
: Angle -> [Gon F64]
Angle
.
is_approx_eq
: Angle, Angle, { rtol ? F64, atol ? F64 } -> Bool
Angle
.
is_nan
: Angle -> Bool
Angle
.
to_str
: Angle -> Str
Arithmetic
.
gcd
: U64, U64 -> U64
Arithmetic
.
lcm
: U64, U64 -> U64
Arithmetic
.
divides
: I64, I64 -> Bool
Arithmetic
.
divisors
: U64 -> List U64
Arithmetic
.
proper_divisors
: U64 -> List U64
Arithmetic
.
is_prime
: U64 -> Bool
Arithmetic
.
prime_factors
: U64 -> List U64
Arithmetic
.
is_perfect
: U64 -> Bool
Combinatorics
.
factorial
: U64 -> U64
Combinatorics
.
choose
: U64, U64 -> U64
Complex
.
Complex
Complex
.
i
: Complex
Complex
.
zero
: Complex
Complex
.
from_real
: Num * -> Complex
Complex
.
from_imag
: Num * -> Complex
Complex
.
from_tuple
: ( Num *, Num * ) -> Complex
Complex
.
to_tuple
: Complex -> ( F64, F64 )
Complex
.
add
: Complex, Complex -> Complex
Complex
.
sub
: Complex, Complex -> Complex
Complex
.
mul
: Complex, Complex -> Complex
Complex
.
div
: Complex, Complex -> Complex
Complex
.
reciprocal
: Complex -> Complex
Complex
.
abs
: Complex -> F64
Complex
.
arg
: Complex -> F64
Complex
.
to_polar
: Complex -> { r : F64, arg : F64 }
Complex
.
is_approx_eq
: Complex, Complex, { rtol ? F64, atol ? F64 } -> Bool
Const
.
pi
: F64
Const
.
π
: F64
Const
.
tau
: F64
Const
.
τ
: F64
Const
.
e
: F64
Const
.
ℯ
: F64
Const
.
golden_ratio
: F64
Const
.
φ
: F64
Const
.
sqrt2
: F64
Stats
.
mean
: List (Num *) -> Result F64 [ListWasEmpty]
Stats
.
mean_unchecked
: List (Num *) -> F64
Stats
.
variance
: List (Num *) -> Result F64 [ListWasEmpty]
Stats
.
variance_unchecked
: List (Num *) -> F64
Stats
.
variance_with_mean
: List (Num *), F64 -> F64
Stats
.
mean_and_variance
: List (Num *) -> Result ( F64, F64 ) [ListWasEmpty]
Stats
.
mean_and_variance_unchecked
: List (Num *) -> ( F64, F64 )
Stats
.
standard_deviation
: List (Num *) -> Result F64 [ListWasEmpty]
Stats
.
nth_sample_moment
: List (Num *), U64 -> Result F64 [ListWasEmpty]
Stats
.
nth_sample_moment_unchecked
: List (Num *), U64 -> F64
Stats
.
nth_sample_moment_with_mean
: List (Num *), U64, F64 -> F64
Stats
.
median
: List (Num *) -> Result F64 [ListWasEmpty]
Stats
.
median_unchecked
: List (Num *) -> F64
Stats
.
range
: List (Num a) -> Result (Num a) [ListWasEmpty]
Trig
.
sin
: Angle -> F64
Trig
.
cos
: Angle -> F64
Trig
.
tan
: Angle -> F64
Trig
.
asin
: F64, [ ToRadians, ToDegrees, ToTurns, ToGon ] -> Angle
Trig
.
acos
: F64, [ ToRadians, ToDegrees, ToTurns, ToGon ] -> Angle
Trig
.
atan
: F64, [ ToRadians, ToDegrees, ToTurns, ToGon ] -> Angle
Trig
.
sinh
: F64 -> F64
Trig
.
cosh
: F64 -> F64
Trig
.
tanh
: F64 -> F64
Trig
.
coth
: F64 -> F64
Trig
.
sech
: F64 -> F64
Trig
.
csch
: F64 -> F64
Exposed Modules
LLM docs
Math
Angle
Arithmetic
Combinatorics
Complex
Const
Stats
Trig