result = TransferFunction.Analysis.numeratorDegree(tf)
Function Analysis.numeratorDegree calculates the degree of the numerator polynomial of a transfer function.
TransferFunction s = Modelica_LinearSystems2.TransferFunction.s(); Modelica_LinearSystems2.TransferFunction tf=(s+1)/(s^2+s+1); Real nDegree; algorithm nDegree := TransferFunction.Analysis.numeratorDegree(tf); // nDegree = 1
TransferFunction.Analysis.denominatorDegree
encapsulated function numeratorDegree import Modelica_LinearSystems2.TransferFunction; input TransferFunction tf "transfer function of a system"; output Integer result; end numeratorDegree;