.Modelica_LinearSystems2.DiscreteZerosAndPoles.Conversion.toDiscreteTransferFunction

Information

Syntax

dtf = DiscreteZerosAndPoles.Conversion.toDiscreteTransferFunction(dzp)

Description

Computes a DiscreteTransferFunction record

       n(z)     b0 + b1*z + ... + bn*z^n
dtf = ------ = --------------------------
       d(z)     a0 + a1*z + ... + an*z^n

from a DiscreteZerosAndPoles record representated by first and second order numerator and denominator polynomials. The poles and zeros and the gain k are computed (zerosAndPoles) and are used as inputs in the DiscreteTransferFunction constructor.

Example

  ZerosAndPoles q = Modelica_LinearSystems2.DiscreteZerosAndPoles.q();
  Modelica_LinearSystems2.DiscreteZerosAndPoles dzp = 1/(q + 3)/(q + 1)

algorithm
  dtf:=Modelica_LinearSystems2.DiscreteZerosAndPoles.Conversion.toDiscreteTransferFunction(dzp);
//  dtf = 1/(z^2 + 4*z + 3)

Interface

function toDiscreteTransferFunction
  import Modelica;
  import Modelica_LinearSystems2.Math.Polynomial;
  import Modelica_LinearSystems2.DiscreteTransferFunction;
  import Modelica_LinearSystems2.DiscreteZerosAndPoles;
  import Modelica_LinearSystems2.ZerosAndPoles;
  import Modelica_LinearSystems2.Internal;
  import Modelica_LinearSystems2.Math.Complex;
  input DiscreteZerosAndPoles dzp "DiscreteZerosAndPoles transfer function of a system";
  output Modelica_LinearSystems2.DiscreteTransferFunction dtf;
end toDiscreteTransferFunction;

Generated at 2020-06-02T01:38:30Z by OpenModelicaOpenModelica 1.16.0~dev-420-gc007a39 using GenerateDoc.mos