fBW=4 #MHz
fo=10 #Hz
AOL=fBW*10**6/fo #unitless
print "Open loop gain is %0.e" %AOL
V1=-10 #V
V2=10 #V
SR=0.5 #V/micro second
delta_Vo=V2-V1 #V
delta_t=delta_Vo/SR #micro second
print "Time taken by op-amp is %0.f micro sec" %delta_t
import math
SR=0.6 #V/micro second
f=100 #kHz
Vm=(SR/10**-6)/(2*math.pi*f*1000) #V
print "Maximum voltage, Vm is %0.3f V" %Vm
import math
SR=0.5 #V/micro second
Vm=10 #V
f=100 #kHz
fm=(SR/10**-6)/(2*math.pi*Vm) #Hz
fm/=1000 #kHz
print "Maximum frequency, fm is %0.2f kHz " %fm
delta_t=0.3/2 #micro second
V1=-3 #V
V2=3 #V
delta_Vo=V2-V1 #V
SR=delta_Vo/delta_t #V/micro second
print "Slew rate is %0.f V/micro second " %SR
SR=2 #V/micro second
delta_Vin=0.8 #V
delta_t=10 #micro second
Acl_max=SR/(delta_Vin/delta_t) #unitless
print "Maximum close loop voltage gain is",Acl_max
import math
SR=6 #V/micro second
#Part (i)
Vm=1 #V
fm=(SR/10**-6)/(2*math.pi*Vm) #Hz
fm/=1000 #kHz
print "part (i) Maximum frequency, fm is %0.f kHz " %fm
#Part (ii)
Vm=10 #V
fm=(SR/10**-6)/(2*math.pi*Vm) #Hz
fm/=1000 #kHz
print "part (ii) Maximum frequency, fm is %0.1f kHz " %fm