Back to functions

variance


Variance

Calculates the population variance of a set of numbers. Return symbolic function of median cannot be calculated.

Usage: nerdamer("variance(... args)")


Parameters

expression | expression[] args A variable number of arguments

Returns

Expression

EXAMPLES:
var x = nerdamer('variance(4,2,5,4)').evaluate();
console.log(x.text());
x = nerdamer('variance([4,2,5])');
console.log(x.toString());
x = nerdamer.variance('x', 'r+1', '21', 'tan(x)', 'r+1');
console.log(x.toString());
x = nerdamer.variance('11', '12', '13', '14').evaluate();
console.log(x.text());
OUTPUT:
Back to functions