Latest Results
feat: implement e, pi, factorial, and hypot math functions (#6682)
## Summary
- Adds 4 math functions from the missing list in #3793:
- **`e()`** — Returns Euler's number (2.718...), zero-argument constant
- **`pi()`** — Returns pi (3.14159...), zero-argument constant
- **`factorial(expr)`** — Returns factorial of a non-negative integer,
returns NaN for negative or non-integer inputs
- **`hypot(a, b)`** — Returns sqrt(a² + b²), follows the existing
`atan2` binary function pattern
- All 4 are registered in the Rust FUNCTION_REGISTRY (auto-available in
SQL)
- Python wrappers and exports added
Resolves part of #3793
## Test plan
- [x] 8 new tests covering all 4 functions (constants, edge cases, bad
input, None handling)
- [x] All 330 tests in `test_numeric.py` pass with no regressions
- [x] `ruff check` and `ruff format` clean
- [x] `cargo fmt` clean Latest Branches
0%
-1%
jeev/benchmarking-gspread-retries 0%
© 2026 CodSpeed Technology