import math
from __future__ import division
#initialisation of variables
hie=1000 #Ω
hfe=75 #Ω
Av=50
Rl=10000 #kΩ
hie2=300 #Ω
hfe2=100 #Ω
Re=1000 #kΩ
#CALCULATIONS
Req=Av*(hie/hfe) #Ω
Rc=Req*Rl/(Rl-Req) #kΩ
wL=2*3.14*200
Ce=(hie2+(hfe2+1)*Re)/(wL*Re*hie2)*10**6
Av1=(hfe*Req)/(hie+(hfe+1)*Re)
#RESULTS
print"The value of Req=",round(Req,3),"Ohm";
print"The value of Rc=",round(Rc,3),"Ohm";
print"The value of Ce=",round(Ce,3),"mF";
print"The value of Av=",round(Av1,3);
import math
from __future__ import division
#initialisation of variables
hie2=1500 #Ω
Rb2=5000 #kΩ
Z01=10
Av=7881.3
#CALCULATIONS
C2=1*10**-6
Zin2=(hie2*Rb2/(hie2+Rb2))
fl=1/(2*3.14*C2*(Zin2+Z01*10**3))
#RESULTS
print"The value of Zin2=",round(Zin2,3),"Ohm";
print"The value of fl=",round(fl,3),"Hz";