# .Modelica_LinearSystems2.DiscreteZerosAndPoles.Analysis.evaluate

## Information

#### Syntax

```result = DiscreteZerosAndPoles.Analysis.evaluate(dzp,q)
```

#### Description

Function Analysis.evaluate evaluates the DiscreteZerosAndPoles transfer function at a given (complex) value of q. The transfer function G(z)=N(q)/D(q) is evaluated by calculating the numerator polynomial N(z) and the denominator polynomial D(q).

#### Example

```  Complex j = Modelica_LinearSystems2.Math.Complex.j();
DiscreteZerosAndPoles q = Modelica_LinearSystems2.DiscreteZerosAndPoles.q();
Modelica_LinearSystems2.DiscreteZerosAndPoles dzp=(q+1)/(q^2+q+1);

Complex result;

algorithm
result := Modelica_LinearSystems2.DiscreteZerosAndPoles.Analysis.evaluate(dzp, j+1);
//  result = 0.538462 - 0.307692j
```

#### See also

Math.Polynomial.evaluateComplex

#### Interface

```encapsulated function evaluate
import Modelica;
import Modelica_LinearSystems2;
import Modelica_LinearSystems2.DiscreteZerosAndPoles;
import Modelica_LinearSystems2.ZerosAndPoles;
import Modelica_LinearSystems2.Math.Complex;
input DiscreteZerosAndPoles dzp "DiscreteZerosAndPoles transfer function of a system";
input Complex q = Complex(0) "Complex value q where dzp is evaluated";
input Real den_min = 0 "|denominator(p)| is limited by den_min";
output Complex y "= zp(p)";
end evaluate;
```

Generated at 2021-04-18T01:03:03Z by OpenModelicaOpenModelica 1.18.0~dev-228-gf450566 using GenerateDoc.mos