bundles / scipy latest / scipy / signal / _lti_conversion / tf2ss
function
scipy.signal._lti_conversion:tf2ss
source: build-install/usr/lib/python3.14/site-packages/scipy/signal/_lti_conversion.py:21
Signature
def tf2ss(num, den)Summary
Transfer function to state-space representation.
Parameters
num, den: array_likeSequences representing the coefficients of the numerator and denominator polynomials, in order of descending degree. The denominator needs to be at least as long as the numerator.
Returns
A, B, C, D: ndarrayState space representation of the system, in controller canonical form.
Examples
Convert the transfer function: .. math:: H(s) = \frac{s^2 + 3s + 3}{s^2 + 2s + 1}num = [1, 3, 3] den = [1, 2, 1]✓
from scipy.signal import tf2ss A, B, C, D = tf2ss(num, den) A✓
array([[-2., -1.],
[ 1., 0.]])
B C D✗
array([[1.]])
Aliases
scipy.signal.tf2ss