Min Function

Min returns the smallest values from the comparison of numbers


Function

The Min function returns the smallest values from the comparison of real or complex numbers. You can compare values, lists or tables.

For complex numbers, the absolute value is compared. If the absolute value is equal, the left value is returned as a result.


Syntax

Min (Value, Value)

The result is the smaller of the two values.

Min (Array)

The result is the smallest value of the array.

Min (Array, Array)

Both arrays must be the same size.

The arrays are compared element by element.

The result is an array of the same size, whose individual elements contain the smaller value.

Example

Min (4, 7) = 4

Min (2 + 3i, 3 + 2i) = 2 + 3i

Min ( [1, 2, 3; 4, 5, 6; 7, 8, 0] ) = 0

Min ( [ 2, 4, 6, 8], [3, 5, 4, 7]) = 2  4  4  7