numerica-1.0.0 has been yanked.
Numerica is an open-source mathematics library for Rust, that provides high-performance number types, such as error-tracking floats and finite field elements.
It provides
- Abstractions over rings, Euclidean domains, fields and floats
- High-performance Integer with automatic up-and-downgrading to arbitrary precision types
- Rational numbers with reconstruction algorithms
- Fast finite field arithmetic
- Error-tracking floating point types
- Generic dual numbers for automatic differentiation
- Matrix operations and linear system solving
- Numerical integration using Vegas algorithm with discrete layer support
For operations on symbols, check out the sister project Symbolica.
Example
Solve a linear system over the rationals:
# use Matrix;
# use Q;
let a = from_linear
.unwrap;
let b = from_linear.unwrap;
let r = a.solve.unwrap;
assert_eq!;
Solution: $(-1/3, 2/3, 0)$.