π First Public Release!
MathCore is now available on crates.io!
β¨ Features
Core Mathematics
- Symbolic Expression Engine: Parse and manipulate mathematical expressions
- Calculus: Symbolic differentiation and integration
- Equation Solving: Linear, quadratic, and polynomial equations
- Complex Numbers: Full complex arithmetic support
Advanced Features
- Differential Equations: Solve ODEs (RK4, Euler) and PDEs (heat, wave, Laplace)
- Matrix Operations: Powered by nalgebra
- Arbitrary Precision: BigInt and BigRational support
- FFT: Fast Fourier Transform with Cooley-Tukey algorithm
- Parallel Computing: Optional Rayon support
- WASM Support: Run in browsers
Developer Experience
- Minimal Dependencies: Core functionality with minimal deps
- Type Safe: Leverages Rust's type system
- Well Tested: 35+ tests with CI/CD pipeline
π¦ Installation
[dependencies]
mathcore = "0.3.0"π Quick Example
use mathcore::MathCore;
fn main() {
let math = MathCore::new();
// Parse and evaluate
let result = math.calculate("2 * pi * r", &[("r", 5.0)]).unwrap();
println!("Circle circumference: {}", result);
// Symbolic differentiation
let derivative = MathCore::differentiate("sin(x^2)", "x").unwrap();
println!("Derivative: {}", derivative);
// Solve equations
let roots = MathCore::solve("x^2 - 5*x + 6", "x").unwrap();
println!("Roots: {:?}", roots);
}π Documentation
π€ Contributing
Contributions are welcome! Please check our contributing guidelines.
β If you find MathCore useful, please star it on GitHub!