An example of creating a package
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
Mathematical expression evaluator fork with exports map, prototype pollution and code injection security fixes
Computes the greatest common divisor (gcd).
Computes the least common multiple (lcm).
C APIs for registering a Node-API module exporting an interface for invoking a binary numerical function.
Double-precision floating-point positive infinity.
Double-precision floating-point negative infinity.
C APIs for registering a Node-API module exporting an interface for invoking a unary numerical function.
Test if a double-precision floating-point numeric value is NaN.
Compute the absolute value of a double-precision floating-point number.
High word mask for excluding the sign bit of a double-precision floating-point number.
The bias of a double-precision floating-point number's exponent.
Test if a double-precision floating-point numeric value is infinite.
Smallest positive double-precision floating-point normal number.
High word mask for the exponent of a double-precision floating-point number.
Return a double-precision floating-point number with the magnitude of x and the sign of y.
The maximum biased base 2 exponent for a double-precision floating-point number.
Multiply a double-precision floating-point number by an integer power of two.
The maximum biased base 2 exponent for a subnormal double-precision floating-point number.
The minimum biased base 2 exponent for a subnormal double-precision floating-point number.
High word mask for the sign bit of a double-precision floating-point number.
Return the real and imaginary components of a single-precision complex floating-point number.
Return the real and imaginary components of a double-precision complex floating-point number.
Computes the L2 norm (Euclidean norm) of an array of values.
Computes the cosine similarity between two arrays.
Computes the dot product between two numeric arrays.
Gamma function.
Exponential function.
Test if a finite numeric value is an odd number.
Parse math interval
Mathematical expression evaluator
Difference between one and the smallest value greater than one that can be represented as a double-precision floating-point number.
Round a double-precision floating-point number toward negative infinity.
Return the real and imaginary components of a single-precision complex floating-point number.
Return the real and imaginary components of a double-precision complex floating-point number.
Test if a finite double-precision floating-point number is an integer.
Return the minimum value.
Complementary error function.
Maximum double-precision floating-point number.
Round a double-precision floating-point number toward zero.
Return the maximum value.
Square root of double-precision floating-point epsilon.
Natural exponential function.
Compute exp(x) - 1.