9 个仓库
Libraries providing scientific, complex, and arbitrary precision calculations for JavaScript and Node.js environments.
Distinct from JavaScript Library Integrations: Existing candidates focus on integration mechanisms or specific GPU/Crypto libraries, not general-purpose scientific math.
Explore 9 awesome GitHub repositories matching scientific & mathematical computing · JavaScript Math Libraries. Refine with filters or upvote what's useful.
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
A comprehensive library for scientific, complex, and arbitrary precision calculations within JavaScript and Node.js environments.
decimal.js 是一个 JavaScript 高精度数学库,旨在执行数学计算时避免标准浮点数带来的舍入误差。它提供了一套高精度数学工具包,支持执行基本算术运算和高级超越函数,并允许配置有效数字位数。 该库实现了基于十进制的数学运算,支持多种舍入模式和任意精度设置。它包含一个数字字符串解析器,可将十进制、十六进制、二进制和八进制字符串转换为高精度数值类型,并提供了一个将高精度十进制值转换为分母受限分数的工具。 其功能涵盖基本算术、高精度数值比较,以及根号、指数、对数和三角函数等高级数学运算。该工具包还提供数值输出格式化功能,并利用系统熵生成安全的随机数。
Provides a comprehensive library for scientific and arbitrary precision mathematical calculations specifically for JavaScript environments.
bignumber.js 是一个任意精度的 JavaScript 库,旨在对超过标准浮点数限制的十进制数和整数执行数学运算。它作为一个十进制算术引擎和数学库,用于计算平方根、幂和模幂运算。 该项目提供了一个基数转换工具,能够解析和转换 2 到 36 之间任何基数的数值。它还包括一个数值格式化工具,用于将高精度值渲染为带有自定义分隔符和表示样式的本地化字符串。 该库涵盖了广泛的功能,包括任意精度算术、可配置的舍入规则和高精度数值比较。它还提供用于十进制到分数转换和加密安全随机数生成的工具。
Provides a comprehensive set of functions for square roots, powers, and modular exponentiation using arbitrary precision.
Dinero.js is a TypeScript-first library for creating, calculating, and formatting monetary values. It provides immutable money objects that represent amounts in the smallest currency subdivision as integers, ensuring precision and preventing floating-point errors. The library enforces same-currency rules on arithmetic operations and validates currency codes against ISO 4217 definitions at creation time. The library distinguishes itself through a calculator plugin architecture that delegates arithmetic operations to interchangeable backends, supporting number, bigint, or custom precision libra
Handles monetary values with multiple amount types including number, bigint, and custom precision backends.
Serves as a comprehensive JavaScript standard library for scientific computing and data analysis.
gl-matrix is a high-performance JavaScript library for vector and matrix math, purpose-built for real-time 3D graphics and physics simulations. It stores all vectors and matrices as typed arrays (Float32Array or Float64Array) in column-major order, matching the memory layout expected by OpenGL and WebGL shaders without requiring transposition. The library is implemented from scratch with zero external dependencies, keeping its bundle size minimal for web and Node.js environments. The library distinguishes itself through its immutable operation pattern, where each math function returns a new t
Provides high-performance vector and matrix math using typed arrays for WebGL and graphics applications.
number-precision 是一个 JavaScript 数学库和任意精度算术实用程序。它提供了一组用于执行加、减、乘、除的函数,同时避免了标准二进制浮点运算中常见的舍入误差。 该项目专注于保持受控的十进制精度,以确保数学输出的一致性。这使其适用于需要精确货币值的金融计算,以及科学或技术报告中的高精度数据处理。 其能力包括精确的浮点算术,以及通过将值舍入到特定十进制精度来进行数值数据归一化。
Acts as a specialized JavaScript math library providing arbitrary precision calculations for Node.js and browser environments.
Microdiff is a utility library for calculating structural differences between two JavaScript objects or arrays. It identifies additions, removals, and modifications by performing a deep comparison of nested data structures, providing a granular list of changes between object states. The library is built with a zero-dependency implementation that relies exclusively on native language primitives to maintain a minimal memory footprint. It includes built-in circular reference handling, which tracks object identities during traversal to prevent infinite loops when processing self-referencing data
Provides a lightweight implementation using only native primitives to ensure minimal memory footprint.
gcoord is a coordinate conversion library that transforms geographic coordinates between China's three major map coordinate systems: WGS-84, GCJ-02, and BD-09. It handles the offset corrections required by national encryption policies, converting GPS or API-derived coordinates to align with the projections used by Chinese map providers like Baidu, Gaode, and Google China. The library provides direct conversions between all three systems, including WGS-84 to GCJ-02, WGS-84 to BD-09, GCJ-02 to BD-09, and their reverse transformations. It processes individual coordinate pairs, batches of coordin
Implements the entire conversion logic as a standalone module with zero external dependencies.