Back to functions

median


median

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

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


Parameters

expression | expression[] args A variable number of arguments

Returns

Expression

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