.Modelica_LinearSystems2.ZerosAndPoles.Analysis.numeratorDegree

Information

Syntax

result = ZerosAndPoles.Analysis.numeratorDegree(zp)

Description

Function Analysis.numeratorDegree calculates the degree of the numerator polynomial constituted by the first and second order polynomials of the ZeroAndPoles numerator.

Example

  ZerosAndPoles p = Modelica_LinearSystems2.ZerosAndPoles.p();
  Modelica_LinearSystems2.ZerosAndPoles zp=(p+1)/(p^2+p+1);

  Real nDegree;

algorithm
  nDegree := ZerosAndPoles.Analysis.numeratorDegree(zp);
//  nDegree = 1

See also

ZerosAndPoles.Analysis.denominatorDegree

Interface

encapsulated function numeratorDegree
  import Modelica;
  import Modelica_LinearSystems2.ZerosAndPoles;
  input ZerosAndPoles zp "ZerosAndPoles transfer function of a system";
  output Integer result;
end numeratorDegree;

Generated at 2024-03-27T19:15:56Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos