WebAssembly Bindings

WebAssembly (WASM) bindings for MathHook, enabling browser-based symbolic mathematics without requiring Node.js. Documentation is under development.

Code Examples

Planned Browser Usage (Future)

Example of how WASM bindings will be used in browsers (not yet available)

// Current Rust usage (direct)
use mathhook::{expr, symbol, simplify};

let x = symbol!(x);
let expr = expr!(x^2 + 2*x + 1);
let simplified = simplify(expr);
// Result: (x + 1)^2

React Component Example (Future)

Planned integration with React components using WASM

Web Worker Integration (Future)

Offload heavy symbolic computation to Web Workers

🔗 Related Topics