This function returns the smallest element of the Complex input vector, defined by the Complex absolute.
function min extends Modelica.Icons.Function; input Complex v[:] "Vector"; output Complex result "Element of v with smallest absolute value"; output Integer index "v[index] has the smallest absolute value"; end min;