Function zpk2tf #
Compute the transfer function of a zero-pole-gain model.
Syntax #
math.zpk2tf(z, p, k)
Parameters #
Parameter | Type | Description |
---|---|---|
z |
Array | Array of zeros values |
p |
Array | Array of poles values |
k |
number | Gain value |
Returns #
Type | Description |
---|---|
Array | Two dimensional array containing the numerator (first row) and denominator (second row) polynomials |
Throws #
Type | Description —- | ———–
Examples #
math.zpk2tf([1, 2], [-1, -2], 1) // returns [[1, -3, 2], [1, 3, 2]]