from __future__ import division
from math import log10
Adm=200000#
Acm=6.33#
CMRR=20*log10(Adm/Acm)#
print 'CMRR=%0.2f dB'%CMRR
from __future__ import division
Adm=30000#
#CMRR=20*log10(Adm/Acm)#
a=90/20#
Acm=(Adm/10**a)#
print "Acm=%0.2f "%(Acm)#
from __future__ import division
from math import pi
#e.g 32.3
SR=0.5*10**6#
Vpk=0.1#
fmax=SR/(2*pi*Vpk)#
print 'fmax=%0.2f kHZ'%(fmax*10**-3)
from __future__ import division
from math import pi
Vpk=10#
slewrate=0.5*10**6#
fmax=slewrate/(2*pi*Vpk)#
print 'fmax=%0.2f HZ'%fmax #value of microamp 741
slewrate=13*10**6#
fmax=slewrate/(2*pi*Vpk)#
print 'fmax=%0.2f kHZ'%(fmax*10**-3) #TLO 81
#value of microamp 741 is much lower than that of the input signal.And value of TLO81 is much higher than input signal,therefore TLO81 can be used
from __future__ import division
ACL=200#
Vout=8#
Vin=Vout/ACL#
print 'Vin=%0.2f mV'%(Vin*10**3)
from __future__ import division
R1=1*10**3#
R2=2*10**3#
Vi=1#
Acl=R2/R1#
V0=Acl*Vi#
print 'V0=%0.2f V'%V0
from __future__ import division
from math import pi
Acm=0.001#
Aol=180000#
Zin=1*10**6#
Zout=80#
SR=0.5#
R2=100*10**3#
R1=10*10**3#
Acl=R2/R1#
print "Acl=%0.2f"%Acl
Zin=R1#
print 'Zin=%0.2f kohm'%(Zin*10**-3)
print 'Zout=%0.2f ohm'%Zout
CMRR=Acl/Acm#
print "CMRR=%0.2f "%CMRR
Vpk=5#
fmax=SR/(2*pi*Vpk)#
print 'fmax=%0.2f kHZ'%(fmax*10**3)
from __future__ import division
from math import pi
R2=100*10**3#
R1=10*10**3#
Acl=1+(R2/R1)#
Acm=0.001#
print "Acl=%0.2f"%Acl
CMRR=Acl/Acm#
print "CMRR=%0.2f"%CMRR
SR=0.5#
Vpk=5.5#
fmax=SR/(2*pi*Vpk)#
print 'fmax=%0.2f kHZ'%(fmax*10**3)
from __future__ import division
Acm=0.001#
AOL=180000#
Zin=1*10**6#
Zout=80#
SR=0.5#
Acl=1#
CMRR=Acl/Acm#
print "CMRR=%0.2f"% CMRR
Vpk=3#
fmax=SR/(2*pi*Vpk)
print 'fmax=%0.2f kHZ'%(fmax*10**3)
from __future__ import division
V1= 0.1#
V2=1#
V3=0.5#
R1=10*10**3#
R2=10*10**3#
R3=10*10**3#
R4=22*10**3#
Vout=((-R4*V1)/R1)+((-R4*V2)/R2)+((-R4*V3)/R3)#
print 'Vout=%0.2f V'%Vout
from __future__ import division
V1=-2#
V2=2#
V3=-1#
R1=200*10**3#
R2=250*10**3#
R3=500*10**3#
Rf=1*10**6#
Vout=(-Rf/R1)*V1+(-Rf/R2)*V2+(-Rf/R3)*V3#
print 'Vout=%0.2f V'%Vout