# given data
A=100000.0##unit less
R1= 98.0*10**3## Ω
R2= 2.0*10**3## Ω
Vin= 1.*10**-3## V
B= R2/(R1+R2)## unit less
A_CL= 1/B## unit less
A_CL= A/(1+A*B)## unit less
# The output voltage
Vout= Vin*A_CL## V
# The error voltage
Verror= Vout/A## V
Vout= Vout*10**3## mV
Verror= Verror*10**6## µV
print "The output voltage = %.2f mV"%Vout
print "The error voltage = %.2f µV"%Verror
# given data
A=20000#
B= 0.02#
Vin= 1## mV
Vin= Vin*10**-3## V
# The closed loop voltage gain,
A_CL= A/(1+A*B)#
# The output voltage,
Vout= Vin*A_CL## V
# The error voltage,
Verror= Vout/A## V
Vout= Vout*10**3## mV
Verror= Verror*10**6## µV
print "The value of A_CL = %.2f"%A_CL
print "The value of Vout = %.2f mV"%Vout
print "The value of Verror = %.2f µV"%Verror
# given data
A=100000.0#
R1= 100.0*10**3## Ω
R2= 100.0## Ω
r_in= 2.0*10**6## Ω
r_out= 75.0## Ω
B= R2/(R1+R2)## unit less
# The closed loop input impedence
r_in_CL= (1+A*B)*r_in## Ω
# The closed loop output impedence
r_out_CL= r_out/(1+A*B)## Ω
r_in_CL=r_in_CL*10**-6## Mohm
print "The closed loop input impedence = %.2f MΩ"%r_in_CL
print "The closed loop output impedence = %.2f Ω"%r_out_CL
# given data
A=100.0#
R_B= 39.0*10**3## Ω
r_in= 2.0*10**6## Ω
r_out= 75.0## Ω
Vin_off= 2.0*10**-3## V
I_B1= 90.0*10**-9## A
I_in_off= 20.0*10**-9## A
# The closed loop voltage gain
B=1## unit less
# The closed-loop input impedance
r_in_CL= (1.0+A*B)*r_in## Ω
r_in_CL= r_in_CL*10**-6## Mohm
print "The closed loop voltage gain = %.2f"%B
print "The closed-loop input impedance = %.2f MΩ"%r_in_CL
A=100000.0#
# The closed-loop output impedance
r_out_CL= r_out/A## Ω
print "The closed-loop output impedance = %.2e Ω"%r_out_CL
#Let V= V1-V2 = Vin_off+I_B1*R_B
V= Vin_off+I_B1*R_B## A
# The output offset voltage
Voo_CL= A*V/A## V
Voo_CL= Voo_CL*10**3## mV
print "The output offset voltage = %.2f mV"%Voo_CL
# given data
R_F= 22.0*10**3## Ω
R_S= 1.0*10**3## Ω
A= 100000.0## unit less
# The closed-loop voltage gain
A_CL= R_F/R_S#
# The desensitivity
desensitivity= A/A_CL#
print "The closed-loop voltage gain = %.2f"%A_CL
print "The desensitivity = %.2f"%desensitivity
# given data
f_unity= 1.0*10**6## Hz
# For A_CL= 1000, The value of f_CL
A_CL= 1000.0#
f_CL= f_unity/A_CL## Hz
f_CL= f_CL*10**-3## kHz
print "For A_CL= 1000, The value of f_CL = %.2f kHz"%f_CL
# For A_CL= 100, The value of f_CL
A_CL= 100.0#
f_CL= f_unity/A_CL## Hz
f_CL= f_CL*10**-3## kHz
print "For A_CL= 100, The value of f_CL = %.2f kHz"%f_CL
# For A_CL= 10, The value of f_CL
A_CL= 10.0#
f_CL= f_unity/A_CL## Hz
f_CL= f_CL*10**-3## kHz
print "For A_CL= 10, The value of f_CL = %.2f kHz"%f_CL
# For A_CL= 1, The value of f_CL
A_CL= 1.0#
f_CL= f_unity/A_CL## Hz
f_CL= f_CL*10**-6## MHz
print "For A_CL= 1, The value of f_CL = %.2f MHz"%f_CL