How do you write a transfer function?
To find the transfer function, first write an equation for X(s) and Y(s), and then take the inverse Laplace Transform. Recall that multiplication by "s" in the Laplace domain is equivalent to differentiation in the time domain.
How do you write a transfer function in Python?
Construct a transfer function. The default constructor is TransferFunction(num, den), where num and den are lists of lists of arrays containing polynomial coefficients. To create a discrete time transfer funtion, use TransferFunction(num, den, dt) where 'dt' is the sampling time (or True for unspecified sampling time).