UNPKG

mathjs

Version:

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser and offers an integrated solution to work with numbers, big numbers, complex numbers, units, and matrices.

28 lines (27 loc) 581 B
module.exports = { 'name': 'var', 'category': 'Statistics', 'syntax': [ 'var(a, b, c, ...)', 'var(A)', 'var(A, normalization)' ], 'description': 'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".', 'examples': [ 'var(2, 4, 6)', 'var([2, 4, 6, 8])', 'var([2, 4, 6, 8], "uncorrected")', 'var([2, 4, 6, 8], "biased")', 'var([1, 2, 3; 4, 5, 6])' ], 'seealso': [ 'max', 'mean', 'min', 'median', 'min', 'prod', 'std', 'sum' ] };