result = DiscreteZerosAndPoles.Analysis.numeratorDegree(zp)
Function Analysis.numeratorDegree calculates the degree of the numerator polynomial constituted by the first and second order polynomials of the DiscreteZeroAndPoles numerator.
DiscreteZerosAndPoles q = Modelica_LinearSystems2.DiscreteZerosAndPoles.q(); Modelica_LinearSystems2.DiscreteZerosAndPoles dzp=(q+0.1)/(p^2 + 0.8*p - 0.2); Real nDegree; algorithm nDegree := DiscreteZerosAndPoles.Analysis.numeratorDegree(dzp); // nDegree = 1
DiscreteZerosAndPoles.Analysis.denominatorDegree.
encapsulated function numeratorDegree import Modelica; import Modelica_LinearSystems2.DiscreteZerosAndPoles; input DiscreteZerosAndPoles dzp "DiscreteZerosAndPoles transfer function of a system"; output Integer result; end numeratorDegree;