A math package for the Rux programming language, providing floating-point functions and common mathematical constants.
The README intentionally stays short so the website remains the canonical source for function signatures, behavior notes, and examples.
- Elementary operations:
Abs,Min,Max,Mod,Pow,Sqrt,Cbrt,Hypot - Rounding helpers:
Floor,Ceil,Round,Trunc - Exponential and logarithmic functions:
Exp,Exp2,Log,Log2,Log10 - Trigonometric functions:
Sin,Cos,Tan,Cotan,ArcSin,ArcCos,ArcTan,ArcCot - Hyperbolic functions:
Sinh,Cosh,Tanh,Cotanh - Angle conversion helpers:
DegToRad,RadToDeg - Common constants such as
Pi,Tau,E,Ln2, andSqrt2
Most functions provide float64 and float32 overloads.
Run the local validation commands before changing behavior:
rux check
rux lint
rux testThe test suite is organized as one executable test package per API area under Tests/.
Licensed under the MIT License.