.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;
  import Modelica_LinearSystems2.Math.Polynomial;
  import Modelica_LinearSystems2.TransferFunction;
  input TransferFunction tf "transfer function of a system";
  output Integer result;
end numeratorDegree;

Generated at 2024-04-25T18:15:59Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos