result = DiscreteTransferFunction.Analysis.denominatorDegree(dtf)
Function Analysis.denominatorDegree calculates the degree of the denominator polynomial of a discrete transfer function.
TransferFunction z = Modelica_LinearSystems2.DiscreteTransferFunction.z(); Modelica_LinearSystems2.DiscreteTransferFunction dtf=(z+1)/(z^2+z+1); Real dDegree; algorithm dDegree := TransferFunction.Analysis.denominatorDegree(dtf); // dDegree = 2
encapsulated function denominatorDegree import Modelica; import Modelica_LinearSystems2.Math.Polynomial; import Modelica_LinearSystems2.WorkInProgress.DiscreteTransferFunction; input DiscreteTransferFunction dtf "discrete transfer function of a system"; output Integer result; end denominatorDegree;