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