Over a million developers have joined DZone.

Math.js – An Extensive Math Library For JavaScript & Node.js

DZone's Guide to

Math.js – An Extensive Math Library For JavaScript & Node.js

· Java Zone ·
Free Resource

Verify, standardize, and correct the Big 4 + more– name, email, phone and global addresses – try our Data Quality APIs now at Melissa Developer Portal!

Math.js is an extensive Math library for JavaScript and Node.js which comes with an in-built expression parser which can perform computations on numbers, big numbers, complex numbers, units, and matrices.


  • Supports numbers, big numbers, complex numbers, units, strings, arrays, and matrices.
  • Is compatible with JavaScript’s built-in Math library.
  • Contains a flexible expression parser.
  • Supports chained operations.
  • Comes with a large set of built-in functions and constants.
  • Has no dependencies. Runs on any JavaScript engine.
  • Is easily extensible.

The whole library is very compact in size, weighing in at only 40KB minified & gzipped.

Requirements: None
Demo: http://mathjs.org/
License: Apache 2.0 License


Developers! Quickly and easily gain access to the tools and information you need! Explore, test and combine our data quality APIs at Melissa Developer Portal – home to tools that save time and boost revenue. 


Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}