Professional Documents
Culture Documents
Annisa Amalia - Prakt Ke-04
Annisa Amalia - Prakt Ke-04
DISUSUN OLEH:
DOSEN PENGAMPU :
Dr. Sudarmaji, M.Si.
YOGYAKARTA
APRIL
2020
No.1
Source Code :
@author: annisa
"""
sym.init_printing()
k = sym.symbols('k',integer=True)
z = sym.symbols('z', complex=True)
#untuk k<0
#untuk k=0
#untuk k>0
Hasil :
No.2
Source Code :
"""
@author: annisa
"""
sym.init_printing()
k = sym.symbols('k', integer=True)
z = sym.symbols('z', complex=True)
z0 = sym.symbols('z0')
X = (z+3) / (z-2)
X1 = X.subs({z: rez+sym.I*imz})
fig = plt.figure(figsize=(5,5))
ax = fig.gca()
for pole in p:
for zero in z:
ax.add_patch(unit_circle)
ax.axvline(0, color='0.7')
ax.axhline(0, color='0.7')
plt.axis('equal')
plt.xlim((-9, 9))
plt.ylim((-9, 9))
plt.grid()
plt.xlabel(r'Re{$z$}')
plt.ylabel(r'Im{$z$}')
poles = sym.roots(sym.denom(X), z)
zeros = sym.roots(sym.numer(X), z)
Hasil :
Keterangan : ROC terletak di luar batas lingkaran sesuai gambar di bawah :