Function reference · Math

min

Returns the smallest value when the arguments can be ordered.

Numeric and otherwise comparable arguments are reduced to the minimum. If Nerdamer cannot establish an ordering between symbolic arguments, the unresolved part remains symbolic.

Available assumptions can help determine ordering for symbolic values.

Examples

These examples use Nerdamer Notation.

Select the smallest numeric argument.

min(2,5,-1)
// → -1

Keep unresolved symbolic ordering explicit.

min(x,y)

Interfaces

The same operation is available through the interfaces below.

Nerdamer Notation · nerdamer API

Nerdamer Notation

Use this form inside input passed to nerdamer(...).

min(arg1, arg2, ...)

nerdamer.min

Call the operation through the default nerdamer import.

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

Parameters

NameTypeDescription
argsExpressionInput[]Two or more expressions to compare.

Returns

Expression — The minimum value, or a symbolic `min(...)` node.

Browse the nerdamer API →

← Back to Reference