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
Computes the greatest common divisor (gcd).
Computes the least common multiple (lcm).
Mathematical expression evaluator
Double-precision floating-point positive infinity.
C APIs for registering a Node-API module exporting an interface for invoking a binary numerical function.
C APIs for registering a Node-API module exporting an interface for invoking a unary numerical function.
Double-precision floating-point negative infinity.
Test if a double-precision floating-point numeric value is NaN.
Compute the absolute value of a double-precision floating-point number.
Test if a double-precision floating-point numeric value is infinite.
Smallest positive double-precision floating-point normal number.
Return the real and imaginary components of a double-precision complex floating-point number.
Return the real and imaginary components of a single-precision complex floating-point number.
Multiply a double-precision floating-point number by an integer power of two.
The bias of a double-precision floating-point number's exponent.
The maximum biased base 2 exponent for a double-precision floating-point number.
The maximum biased base 2 exponent for a subnormal double-precision floating-point number.
Return a double-precision floating-point number with the magnitude of x and the sign of y.
High word mask for the exponent of a double-precision floating-point number.
The minimum biased base 2 exponent for a subnormal double-precision floating-point number.
Parse math interval
High word mask for excluding the sign bit of a double-precision floating-point number.
High word mask for the sign bit of a double-precision floating-point number.
Computes the cosine similarity between two arrays.
Computes the dot product between two numeric arrays.
Computes the L2 norm (Euclidean norm) of an array of values.
Mathematical expression evaluator fork with prototype pollution fix
Mathematical and logical utilities used by react-gifted-charts and react-native-gifted-charts
Find how many values of a discrete periodic function are contained in an interval.
Find the nearest value of a discrete periodic function, given a point.
Round a double-precision floating-point number toward negative infinity.
Test if a finite double-precision floating-point number is an integer.
Exponential function.
Given a point and a distance, determine how many periodic values were skipped.
Test if a finite numeric value is an odd number.
Gamma function.
Return the maximum value.
Return the real and imaginary components of a double-precision complex floating-point number.
Return the real and imaginary components of a single-precision complex floating-point number.
Test if a finite numeric value is an even number.
Positive infinity.