Back to functions

mode


mode

Calculates the mode of a set of numbers. Returns a symbolic function if mode cannot be calculated.


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


Parameters

expression | expression[] args A variable number of arguments

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