result = DiscreteTransferFunction.Analysis.denominatorDegree(dtf)
Function Analysis.denominatorDegree calculates the degree of the denominator polynomial of a discrete transfer function.
DiscreteTransferFunction z = Modelica_LinearSystems2.DiscreteTransferFunction.z(); Modelica_LinearSystems2.DiscreteTransferFunction dtf=(0.0023753*z^2 + 0.00475059*z + 0.0023753)/(z^2 - 1.89549*z + 0.904988); Real dDegree; algorithm dDegree := DiscreteTransferFunction.Analysis.denominatorDegree(dtf); // dDegree = 2
encapsulated function denominatorDegree import Modelica_LinearSystems2.DiscreteTransferFunction; input DiscreteTransferFunction dtf "Discrete transfer function of a system"; output Integer result; end denominatorDegree;