# JavaScript Math Libraries

> AI-ranked search results for `best javascript math libraries` on awesome-repositories.com — ordered by an LLM for relevance, best match first. 115 total matches; showing the top 9.

Explore on the web: https://awesome-repositories.com/q/best-javascript-math-libraries

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [this search on awesome-repositories.com](https://awesome-repositories.com/q/best-javascript-math-libraries).**

## Results

- [josdejong/mathjs](https://awesome-repositories.com/repository/josdejong-mathjs.md) (15,036 ⭐) — Math.js is a comprehensive JavaScript library for scientific, complex, and arbitrary precision calculations. It functions as a symbolic computation engine, a linear algebra toolkit, a statistical analysis library, and a unit conversion system.

The project distinguishes itself by providing a symbolic engine capable of parsing, simplifying, and manipulating mathematical expressions algebraically without requiring immediate numerical evaluation. It includes a framework for defining and converting physical quantities with units of measure and automatic prefix support.

The library covers a broad
- [nefe/number-precision](https://awesome-repositories.com/repository/nefe-number-precision.md) (4,100 ⭐) — number-precision is a JavaScript math library and arbitrary precision arithmetic utility. It provides a set of functions for performing addition, subtraction, multiplication, and division while avoiding the rounding errors common in standard binary floating-point operations.

The project focuses on maintaining controlled decimal precision to ensure consistent mathematical output. This makes it applicable for financial calculations where exact currency values are required, as well as for high precision data processing in scientific or technical reports.

Its capabilities include precise floatin
- [stdlib-js/stdlib](https://awesome-repositories.com/repository/stdlib-js-stdlib.md) (5,735 ⭐)
- [mikemcl/decimal.js](https://awesome-repositories.com/repository/mikemcl-decimal-js.md) (7,205 ⭐) — decimal.js is a JavaScript arbitrary precision library designed to perform mathematical calculations without the rounding errors associated with standard floating-point numbers. It provides a high-precision math toolkit for executing basic arithmetic and advanced transcendental functions with configurable significant digits.

The library implements decimal-based math that supports various rounding modes and arbitrary precision settings. It includes a numeric string parser for converting decimal, hexadecimal, binary, and octal strings into high-precision numeric types, as well as a utility for
- [mikemcl/bignumber.js](https://awesome-repositories.com/repository/mikemcl-bignumber-js.md) (7,004 ⭐) — bignumber.js is an arbitrary-precision JavaScript library designed to perform mathematical operations on decimals and integers that exceed the limits of standard floating-point numbers. It functions as a decimal arithmetic engine and a math library for calculating square roots, powers, and modular exponentiation.

The project provides a base conversion utility capable of parsing and translating numeric values between any base from 2 to 36. It also includes a numeric formatting tool for rendering high-precision values into localized strings with custom separators and notation styles.

The libra
- [sloisel/numeric](https://awesome-repositories.com/repository/sloisel-numeric.md) (1,447 ⭐) — This library is a JavaScript-based numerical analysis tool designed to perform complex mathematical operations directly within web browser environments. It provides a comprehensive suite of algorithms for linear algebra, matrix manipulation, and equation solving, enabling data-intensive computations to occur locally without requiring server-side processing.

The project distinguishes itself by offering a specialized computational engine that handles advanced mathematical tasks such as gradient-based function optimization and iterative numerical approximation. By utilizing quadrature-based inte
- [simple-statistics/simple-statistics](https://awesome-repositories.com/repository/simple-statistics-simple-statistics.md) (3,504 ⭐) — simple statistics for node & browser javascript
- [jstat/jstat](https://awesome-repositories.com/repository/jstat-jstat.md) (0 ⭐) — jStat - JavaScript Statistical Library
- [numbers/numbers.js](https://awesome-repositories.com/repository/numbers-numbers-js.md) (1,757 ⭐) — numbers.js is a comprehensive mathematics library for JavaScript that provides a collection of advanced functions for scientific computing and data analysis. It is designed to handle complex mathematical operations through a modular architecture, offering tools for calculus, statistics, linear algebra, and prime number analysis.

The library distinguishes itself by providing explicit control over numerical precision, allowing users to define error thresholds and manage decimal accuracy to mitigate rounding discrepancies. This focus on precision is paired with a suite of computational tools tha
