Now with ODE & PDE support

MathHook

SymbolicPower.EducationalClarity.NativeSpeed.

A Rust computer algebra system with native Python and Node.js bindings. No GC, no compromises.

<300ns
Integration
<2ΞΌs
Derivatives
32B
Expression size
use mathhook_core::prelude::*;
// πŸŽ“ Step-by-step derivative of eΛ£Β·sin(x)
let expr = parse!("exp(x) * sin(x)");
let steps = expr.derivative_with_steps("x");
// ✨ 7 educational steps:
// 1. Identify Product β†’ 2. State Product Rule
// 3. d/dx[eΛ£] = eΛ£ β†’ 4. d/dx[sin(x)] = cos(x)
// 5. Result: cos(x)Β·eΛ£ + eΛ£Β·sin(x)
for step in &steps { println!("{}", step); }
FEATURES

Key Features

A high-performance educational computer algebra system

πŸŽ“

Step-by-Step Learning

Educational explanations showing every rule applied

∫

Symbolic Calculus

Derivatives, integrals, limits with product/chain rules

βˆ‚

PDEs & ODEs

Heat, wave, Laplace equations with Fourier series

πŸ“

Multiple Input Formats

Parse LaTeX, Wolfram Language, and standard notation

βš–οΈ

Equation Solving

Linear, quadratic, polynomial, and systems of equations

⚑

High Performance

Rust-based core with SIMD optimizations

πŸ”—

Language Bindings

Native support for Python and Node.js

πŸš€

Production Ready

Zero-copy parsing, 32B expressions, thread-safe

PERFORMANCE

Blazing Fast

Nanosecond-to-microsecond performance for symbolic operations

Operation Benchmarks

Elementary integration (cos, exp)< 300 ns
Simple derivatives< 2 ΞΌs
Polynomial simplification (deg 50)< 10 ΞΌs
Complex calculus (chain + product)< 500 ΞΌs
Benchmarked with Criterion.rs

Why So Fast?

32B
32-byte expressions
Two fit per CPU cache line
0
Zero-copy parsing
Direct AST construction without allocations
⚑
SIMD operations
Vectorized arithmetic for bulk operations
πŸ¦€
No interpreter overhead
Native Rust, no garbage collector
πŸ”’
Thread-safe
Immutable expressions, lock-free operations
DOCUMENTATION

Comprehensive Math Coverage

From basic algebra to advanced differential equations

USE CASES

Built For

From research to production

Machine Learning

Symbolic gradients for neural networks and optimization

Education

Step-by-step solutions for teaching and learning

Research

High-performance symbolic computation for science

Development

Embed math in your applications with native speed

INSTALLATION

Get Started in Seconds

Choose your language and start computing

πŸ¦€Rust
cargo add mathhook
🐍Python
pip install mathhook
πŸ“œNode.js
npm install mathhook-node

Ready to Solve?

Join developers using MathHook for high-performance symbolic math