Package Exports
- @cortex-js/compute-engine
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cortex-js/compute-engine) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Cortex Compute Engine
Symbolic manipulation and numeric evaluation of MathJSON expressions
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.
Using Compute Engine
$ npm install --save @cortex-js/compute-engineimport { 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"More
- Build instructions
Related Projects
- 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
Support the Project
- 🌟 Star the GitHub repo (it really helps)
- 💬 Join our Gitter community
- 📨 Drop a line to arno@arno.org
License
This project is licensed under the MIT License.