MathJSON is a lightweight data interchange format for mathematical notation, based on JSON.
The Cortex Compute Engine can parse LaTeX to MathJSON, serialize MathJSON to LaTeX, format, simplify and evaluate MathJSON expressions.
Reference documentation and guides at cortexjs.io/compute-engine.
$ npm install --save @cortex-js/compute-engine
import { parse, evaluate } from '@cortex-js/compute-engine';
const expr = parse('2^{11}-1 \\in \\P');
console.log(expr);
// ➔ ["Element", ["Subtract", ["Power", 2, 11] , 1], "PrimeNumber"]
console.log(evaluate(expr));
// ➔ "False"
- Build instructions
- MathJSON
- A lightweight data interchange format for mathematical notation
- MathLive (on GitHub)
- A Web Component for math input.
- Cortex (on GitHub)
- A programming language for scientific computing
- 🌟 Star the GitHub repo (it really helps)
- 💬 Join our Gitter community
- 📨 Drop a line to [email protected]
This project is licensed under the MIT License.