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
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());