functionnumeratorDegree

Return numerator degree

Information

Syntax

result = TransferFunction.Analysis.numeratorDegree(tf)

Description

Function Analysis.numeratorDegree calculates the degree of the numerator polynomial of a transfer function.

Example

   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

See also

TransferFunction.Analysis.denominatorDegree

Inputs

TypeNameDefaultDescription
TransferFunctiontfTransfer function of a system

Outputs

TypeNameDefaultDescription
Integerresult