argmin

(function for equations)

 

Usage:

argmin0 (x0, x1, ... xn)

argmin1 (x1, x2, ... xn)

Definition:

i s.t. (xi ⋜ xj) for all j

Required:

xi are unrestricted reals

Returns the index (position in list) of the argument with the lowest value.  If there are several with the same lowest value, then the index of the first occurrence will be returned.  The first argument has index 0 if argmin0 is used, or index 1 if argmin1 is used.

At least one argument must be passed.

If you want the minimum value itself, rather than its index, instead use min.

See also argmax.

 

Examples:

argmin0 (10, 6.6, 3.4, 126, 3.4)   returns 2

 

argmin1 (-5e3, 6.6, 3.4, -126)     returns 1