mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
1.2 KiB
1.2 KiB
| layout |
|---|
| default |
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]]