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
Calculate the maximum value of a strided array according to a mask.
Compute a moving arithmetic mean of squared absolute values incrementally.
Calculate the variance of a single-precision floating-point strided array using a two-pass algorithm with extended accumulation and returning an extended precision result.
Compute a count incrementally, ignoring NaN values.
Calculate the median value of a sorted single-precision floating-point strided array.
Calculate the arithmetic mean of a single-precision floating-point strided array, ignoring NaN values, using Welford's algorithm with extended accumulation, and returning an extended precision result.
Moving Grubbs' test for outliers.
Calculate the range of a single-precision floating-point strided array according to a mask, ignoring NaN values.
Calculating and plotting fundamental statistics
Compute an unbiased sample covariance incrementally.
Calculate the range of a double-precision floating-point strided array.
Compute the coefficient of variation (CV) incrementally.
Round a numeric value to the nearest number toward zero with N significant figures.
Graphic library from scratch
Compute a moving range incrementally.
Calculate the arithmetic mean of a strided array using Welford's algorithm.
Calculate the variance of a double-precision floating-point strided array provided a known mean and using Neely's correction algorithm.
Compute a squared sample Pearson product-moment correlation coefficient.
Calculate the variance of a double-precision floating-point strided array.
Calculate the variance of a single-precision floating-point strided array ignoring NaN values and using a two-pass algorithm.
Calculate the mean and variance of a double-precision floating-point strided array using a two-pass algorithm.