.Modelica_LinearSystems2.StateSpace.Analysis.numeratorDegree

Information

Syntax

result = StateSpace.Analysis.numeratorDegree(ss)

Description

Function Analysis.numeratorDegree calculates the degree of the numerator polynomial of the corresponding transfer function. The state space system is converted to the transfer function G(s)=N(s)/D(s) with the polynomial N(s) as numerator.

Example

  Modelica_LinearSystems2.StateSpace ss=Modelica_LinearSystems2.StateSpace(
    A=[-1],
    B=[1],
    C=[1],
    D=[1]);

  Real nDegree;

algorithm
  nDegree := StateSpace.Analysis.numeratorDegree(Modelica_LinearSystems2.StateSpace(ss);
//  nDegree = 1

See also

StateSpace.Conversion.toTransferFunction, StateSpace.Analysis.denominatorDegree

Interface

encapsulated function numeratorDegree
  import Modelica;
  import Modelica_LinearSystems2;
  import Modelica_LinearSystems2.Math.Polynomial;
  import Modelica_LinearSystems2.StateSpace;
  import Modelica_LinearSystems2.TransferFunction;
  input Modelica_LinearSystems2.StateSpace ss;
  output Integer result;
end numeratorDegree;

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