Calculate number of real zeros
function numberOfRealZeros2 import Modelica; import Modelica_LinearSystems2.Internal; import Modelica_LinearSystems2.WorkInProgress.DiscreteTransferFunction; import Modelica_LinearSystems2.Math.Polynomial; input DiscreteTransferFunction dtf "DiscreteTransferFunction"; output Integer result = Internal.numberOfRealZeros(Polynomial.roots(Polynomial(dtf.n))); end numberOfRealZeros2;