.Modelica_LinearSystems2.WorkInProgress.DiscreteZerosAndPoles.Conversion.toDiscreteTransferFunction

Information

Syntax

tf = ZerosAndPoles.Conversion.toTransferFunction(zp)

Description

Computes a TransferFunction record

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

from a ZerosAndPoles record represented 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 TransferFunction constructor.

Example

  ZerosAndPoles p = Modelica_LinearSystems2.ZerosAndPoles.p();
  Modelica_LinearSystems2.ZerosAndPoles tf = 1/(p + 3)/(p + 1)

algorithm
  zp:=Modelica_LinearSystems2.ZerosAndPoles.Conversion.toTransferFunction(tf);
//  zp = 1/( (p + 1)*(p + 2) )

Interface

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

Generated at 2024-12-22T19:25:51Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos