function maxElement extends Modelica.Icons.Function; input Complex v[:] "Vector"; output Real result "Element of v with largest absolute value"; output Integer index "v[index] has the largest absolute value"; end maxElement;