functionnumeratorDegree
Return numerator degree of a discrete zeros-and-poles transfer function
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
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| DiscreteZerosAndPoles | dzp | DiscreteZerosAndPoles transfer function of a system |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | result |