min
Computes the minimum of a pair or array of integer or floating-point expressions.
Syntax
floatExpr min(floatExprArray a)
floatExpr min(floatExpr x, floatExpr y)
intExpr min(intExprArray a)
intExpr min(intExpr x, intExpr y)
Parameters
-
a: An array of integer or floating-point expressions from which the minimum is to be computed. -
x: First integer or floating-point expressions from which the minimum is to be computed. -
y: Second integer or floating-point expressions from which the minimum is to be computed.
Description
The min function returns an expression which has the same value as the
minimum of the supplied arguments. The return type corresponds to the
type of arguments supplied.
Example
m = min(max(a,b), max(min(a, b), c))
This computes the median m of three expressions a, b, and c.
Requirements
-
If the
aarray has no elements, theminfunction returns positive infinity.