Fix and cover standard library functions
All checks were successful
Build / build (push) Successful in 36s
Tests / tests (push) Successful in 43s

This commit is contained in:
codex 2026-06-28 00:31:44 -05:00
commit 858717deae
11 changed files with 146 additions and 30 deletions

View file

@ -136,14 +136,14 @@ decimal angle = interpreter.Interpret("degrees(pi / 2)");
The standard library includes:
- Base functions: `abs`, `sign`, `min`, `max`
- Base functions: `abs`, `sign`, `min`, `max`, `sqrt`, `pow`, `log`, `ln`, `lerp`, `smoothstep`, `map`, `normalize`
- Angle helpers: `degrees`, `radians`, `wrapangle`
- Rounding helpers: `floor`, `ceiling`, `truncate`, `frac`, `round`, `clamp`
- Trigonometry: `sin`, `cos`, `tan`, `asin`, `acos`, `atan`, `atan2`
- Hyperbolic trigonometry: `sinh`, `cosh`, `tanh`, `asinh`, `acosh`, `atanh`
- Number theory: `fac`, `ncr`, `npr`, `gcd`, `lcm`
- Number theory: `fac`, `ncr`, `npr`, `gcd`, `lcm`, `fib`, `iseven`, `isodd`, `isint`, `isprime`
- Random helpers: `flip`, `bern`, `rand`, `rands`, `randn`, `randns`
- Constants: `pi`, `e`, `tau`, `phi`, `goldenratio`, `eurler`, `omega`
- Constants: `pi`, `e`, `tau`, `phi`, `goldenratio`, `eurler`, `euler`, `omega`
## Custom Functions