.Modelica_LinearSystems2.TransferFunction.Analysis.numeratorDegree

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

Interface

encapsulated function numeratorDegree
  import Modelica_LinearSystems2.TransferFunction;
  input TransferFunction tf "transfer function of a system";
  output Integer result;
end numeratorDegree;

Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos