Skip to main content

Module math

Module math 

Source
Expand description

Residual sign tuple: (‖r‖, ṙ, r̈) — the semiotic manifold coordinate. no_std math utilities — Newton-Raphson sqrt, exp, ln, floor, round and basic statistics.

f32 intrinsics such as sqrt, exp, floor and round are not available in no_std without libm. We provide hand-rolled, tested implementations covering every call site in the crate.

All functions are #[inline], purely functional, and zero-unsafe.

Functions§

exp_f32
Exponential function, no_std safe.
floor_f32
Floor function, no_std safe.
ln_f32
Natural logarithm, no_std safe.
mean_f32
Population mean of a slice.
round_f32
Round to nearest integer, ties away from zero, no_std safe.
sqrt_f32
Fast square root via Newton-Raphson iteration, no_std safe.
std_dev_f32
Population standard deviation of a slice.