.ModelicaReference.Operators.'min()'

Information

Returns the smallest element

Syntax

min(A)
min(x,y)
min(e(i, ..., j) for i in u, ..., j in v)

Description

The first form returns the smallest element of array expression A.

The second form returns the smallest element of the scalars x and y.

The third form is a reduction expression and returns the smallest value of the scalar expression e(i, ..., j) evaluated for all combinations of i in u, ..., j in v

Examples

min(i^2 for i in {3,7,6})  // = 9

Generated at 2019-07-19T01:39:52Z by OpenModelicaOpenModelica 1.14.0~dev-26610-gea7fc62 using GenerateDoc.mos