# Install mathjs with npm

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif. Version 15.2.0 via npm; verified 2026-04-07.

## Install

```sh
sudo av install npm:mathjs
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g mathjs
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:mathjs
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/mathjs>
- **Version:** 15.2.0
- **Source summary:** Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif
- **Homepage:** <https://mathjs.org>
- **Repository:** <https://github.com/josdejong/mathjs>
- **Upstream docs:** <https://mathjs.org>
- **License:** Apache-2.0
- **Source archive:** <https://registry.npmjs.org/mathjs/-/mathjs-15.2.0.tgz>
- **Issue tracker:** <https://github.com/josdejong/mathjs/issues>
- **Published:** 2026-04-07T14:35:09.363Z
- **Last updated:** 2026-04-07T14:35:09.363Z
- **Generated:** 2026-07-10T07:20:53+00:00

## Executables

- mathjs (cli)
- mathjs (alias)

## Dependencies

- @babel/runtime
- complex.js
- decimal.js
- escape-latex
- fraction.js
- javascript-natural-sort
- seedrandom
- tiny-emitter
- typed-function

## Build dependencies

- @babel/core
- @babel/plugin-transform-object-assign
- @babel/plugin-transform-optional-catch-binding
- @babel/plugin-transform-runtime
- @babel/preset-env
- @babel/register
- @types/assert
- @types/mocha
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- assert
- babel-loader
- c8
- codecov
- del
- eigen
- es-check
- eslint
- eslint-config-prettier
- eslint-config-standard
- eslint-plugin-import
- eslint-plugin-mocha
- eslint-plugin-n
- eslint-plugin-prettier
- eslint-plugin-promise
- expect-type
- expr-eval
- fancy-log
- glob
- gulp
- gulp-babel
- handlebars
- jsep
- karma
- karma-firefox-launcher
- karma-mocha
- karma-mocha-reporter
- karma-spec-reporter
- karma-webdriver-launcher
- karma-webpack
- mkdirp
- mocha
- mocha-junit-reporter
- ndarray
- ndarray-determinant
- ndarray-gemm
- ndarray-ops
- ndarray-pack
- numericjs
- prettier
- process
- sinon
- sylvester
- tinybench
- ts-node
- typescript
- webpack
- zeros

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-10
- Package-manager version: 15.2.0
- Package-manager updated: 2026-04-07
- Local data: ok
- Upstream repository: https://github.com/josdejong/mathjs
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for mathjs. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Beta: 8.0.0-beta.1, Latest: 15.2.0
- **Version Count:** 306
- **Maintainers:** josdejong
- **Author:** Jos de Jong
- **Publisher:** josdejong
- **Engines:** Node: >= 18
- **Integrity:** sha512-UAQzSVob9rNLdGpqcFMYmSu9dkuLYy7Lr2hBEQS5SHQdknA9VppJz3cy2KkpMzTODunad6V6cNv+5kOLsePLow==
- **Shasum:** ddfbf50a9aeaec2edfb524195e8202ca29f8e757
- **Unpacked Size:** 9,434,044
- **File Count:** 0
- **Created At:** 2013-02-17T00:39:13.911Z
- **Latest Published At:** 2026-04-07T14:35:09.363Z
- **Modified At:** 2026-04-07T14:35:09.488Z


## Related links

- [Scientific computing packages](https://www.automicvault.com/pkg/scientific-computing-tools/) - Matched curated package taxonomy and local package facts.
- [msolve](https://www.automicvault.com/pkg/brew/msolve/) - Local package facts share a topical domain. Shared terms: algebra, cli, computation, mathematics, science.
- [fricas](https://www.automicvault.com/pkg/brew/fricas/) - Local package facts share a topical domain. Shared terms: algebra, cli, computation, mathematics, science.
- [miller-rabin](https://www.automicvault.com/pkg/npm/miller-rabin/) - Local package facts share a topical domain. Shared terms: bignumber, cli, mathematics, number, science.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
