Back to functions

smpvar


Sample variance

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

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


Parameters

expression | expression[] args A variable number of arguments

Returns

Expression

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