.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 2021-04-18T01:03:03Z by OpenModelicaOpenModelica 1.18.0~dev-228-gf450566 using GenerateDoc.mos