Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@cortex-js/compute-engine

cortex-js177.9kMIT0.30.2TypeScript support: included

Symbolic computing and numeric evaluations for JavaScript and Node.js

math, JSON, mathjs, mathematica, maple, algebra, symbolic computing, scientific computing, sympy

readme

math live

Cortex Compute Engine

Symbolic manipulation and numeric evaluation of MathJSON expressions

MathJSON is a lightweight mathematical notation interchange format based on JSON.

The Cortex Compute Engine can parse LaTeX to MathJSON, serialize MathJSON to LaTeX or MathASCII, format, simplify and evaluate MathJSON expressions.

Reference documentation and guides at cortexjs.io/compute-engine.

Using Compute Engine

$ npm install --save @cortex-js/compute-engine
import { ComputeEngine } from "@cortex-js/compute-engine";

const ce = new ComputeEngine();

ce.parse("2^{11}-1 \\in \\Z").evaluate().print()
// ➔ "True"

FAQ

Q How do I build the project?

Build instructions

MathJSON
A lightweight mathematical notation interchange format
MathLive (on GitHub)
A Web Component for math input.
Cortex (on GitHub)
A programming language for scientific computing

Support the Project

License

This project is licensed under the MIT License.