This function returns the Complex sum of the Complex input vector
function sum extends Modelica.Icons.Function; input Complex v[:] "Vector"; output Complex result "Complex sum of vector elements"; end sum;