.Modelica_LinearSystems2.DiscreteZerosAndPoles.Analysis.numeratorDegree

Information

Syntax

result = DiscreteZerosAndPoles.Analysis.numeratorDegree(zp)

Description

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

Example

  DiscreteZerosAndPoles q = Modelica_LinearSystems2.DiscreteZerosAndPoles.q();
  Modelica_LinearSystems2.DiscreteZerosAndPoles dzp=(q+0.1)/(p^2 + 0.8*p - 0.2);

  Real nDegree;

algorithm
  nDegree := DiscreteZerosAndPoles.Analysis.numeratorDegree(dzp);
//  nDegree = 1

See also

DiscreteZerosAndPoles.Analysis.denominatorDegree.

Interface

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

Generated at 2024-12-17T19:26:02Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos