Function reference · Math

min

Returns the smallest of its arguments.

Numbers, and symbols that assumptions let it compare, are reduced. If it can't order all the arguments, the call is returned unevaluated.

Notation

min(arg1, arg2, ...)

Write it in an expression: nerdamer('min(2,5,-1)'), or in the Playground.

nerdamer.min

nerdamer.min(...args: ExpressionInput[]): Expression

A method on the default import. Arguments can be strings, as in Notation.

Examples

The smallest number.

min(2,5,-1)
// → -1
Open in Playground

With assumptions, y is smaller.

assume(x>0); assume(y<0); min(x,y)
// → y
Open in Playground

← Back to Function reference