Back to functions

min


minimum

Returns the min of a set of numbers. Maps directly to Math.min(... args) if numeric.

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


Parameters

expression args A variable number of arguments

Returns

Expression

EXAMPLES:
var x = nerdamer('min(5, 2, 11)').evaluate();
console.log(x.toString());
x = nerdamer('min(x*x, y, z)');
console.log(x.toString());
//Instruct nerdamer to return symbolic min and max
nerdamer.set('SYMBOLIC_MIN_MAX', true);
x = nerdamer('min(sqrt(2), pi)');
console.log(x.toString());
OUTPUT:
Back to functions