Calculate the condition number norm(A)*norm(inv(A))
encapsulated function conditionNumber extends Modelica.Icons.Function; import Complex; import Modelica_LinearSystems2; import Modelica; input Complex A[:, :] "Input matrix"; input Real p(min = 1) = 2 "Type of p-norm (only allowed: 1, 2 or Modelica.Constants.inf)"; output Real result = 0.0 "p-norm of matrix A"; end conditionNumber;