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