Search⌘ K

Solution Review: Transfer Functions

Explore detailed solutions for analyzing transfer functions using Python in scientific applications. Learn to define system components, find poles and zeros, convert symbolic to numeric data, and visualize results through plots. This lesson prepares you to apply Python tools to transfer function problems effectively.

Solution 1 #

C++
from sympy import *
s = Symbol('s')
G1 = 1 / s
G2 = 1 / (s + 1)
G3 = s / (s + 2)
G4 = 4
G5 = 1 / (s**2 + 1)
G6 = 3 * s
tf = together(G1 * ((G2 * G3) + (G4 * G5)) * G6)
print(tf)

Explanation

  • In lines 5 - 10, we have defined the transfer function of the system components in terms of s.

  • In line 12, we used the rules of transfer functions to reduce the system to the following equation:

(G1×((G2×G3)+(G4×G5))×G6)(G_1 \times((G_2 \times G_3)+(G_4 \times G_5))\times G_6) ...