Skip to content

rux-lang/Math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Math

CI License

A math package for the Rux programming language, providing floating-point functions and common mathematical constants.

Documentation

API Reference

The README intentionally stays short so the website remains the canonical source for function signatures, behavior notes, and examples.

Package Contents

  • 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, and Sqrt2

Most functions provide float64 and float32 overloads.

Development

Run the local validation commands before changing behavior:

rux check
rux lint
rux test

The test suite is organized as one executable test package per API area under Tests/.

License

Licensed under the MIT License.

About

Rux package: math functions and constants

Topics

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Contributors