Math.js can be installed via npm:
npm install mathjs
Note that when using mathjs in a TypeScript project, you will have to install type definition files too:
npm install @types/mathjs.
Math.js can be downloaded or linked from various content delivery networks:
Here some direct download links from unpkg:
|Development (version 6.2.3)||1830 kB, uncompressed with comments|
|Production (version 6.2.3)||138 kB, minified and gzipped|
Too large for you? Create your own custom bundle.
Web Service #
Math.js is available as a RESTful web service: https://api.mathjs.org
Here some notable extensions for mathjs:
|mathsteps||A step-by-step math solver library that is focused on pedagogy (how best to teach). The math problems it focuses on are pre-algebra and algebra problems involving simplifying expressions.|
|mathjs‑expression‑parser||This custom build of mathjs contains just the expression parser and basic arithmetic functions for numbers. About four times as small as the full mathjs library.|
|mathjs-simple-integral||Extends Math.js to be able to compute simple integrals.|
|math.diff.js||Symbolic differentiation plugin for Math.js|
|postcss-math||PostCSS plugin for making calculations with math.js|
Other math libraries #
|algebra.js||Build, display, and solve algebraic equations.|
A changelog describing the changes with each release is available on the page History.
Browser support #
Though there is no official support for older browsers, math.js should still work on older browsers when using the es5-shim.
Source code #
The source code of math.js is available on GitHub: https://github.com/josdejong/mathjs.
Math.js is open source and licensed under the Apache 2.0 License