gMath.
Integer-exact math.
No floats. Same answer every run.
A fixed-point math library, in pure Rust.
Every operation is integer arithmetic. No f32 or f64 touches the compute path, so results are reproducible and auditable.
Same input, same output.
Integer arithmetic is exact. On a given profile, identical input gives identical output, run after run, machine after machine. Verified on x86-64.
Five profiles.
Pick the range and accuracy your workload needs, at compile time.
One library.
Binary, decimal, balanced ternary, and symbolic rational. Values route to the representation that holds them exactly.
Not just arithmetic.
Eighteen transcendental functions, dense linear algebra, differential geometry, Lie groups, ODE solvers, tensors, and ternary-quantized inference.
Decimal transcendentals are correctly rounded to their storage precision, validated against a 50-digit reference. MIT or Apache-2.0.