Chapter 9 Operational Amplifiers

Example 9.2 , Page no:268

In [1]:
import math
from __future__ import division

#initialisation of variables
Rl=1 #kΩ
Rf=10 #kΩ
Rd=1 #kΩ

#CALCULATIONS
Aol=-10**4
Av=(Aol/(1+(Rl/Rf)*(1-Aol)+(Rl/Rd)))

#RESULTS
print"The value of Av=",round(Av,3);
The value of Av= -9.979

Example 9.9 , Page no:272

In [2]:
import math
from __future__ import division

#initialisation of variables
Rl=1
Rf=10
Rd=1

#CALCULATIONS
Aol=-10**4
Av=(Aol/(1+(Rl/Rf)*(1-Aol)+(Rl/Rd)))

#RESULTS
print"The value of Av=",round(Av,3);
The value of Av= -9.979

Example 9.12 , Page no:274

In [3]:
import math
from __future__ import division

#initialisation of variables
f=100 #Hz

#CALCULATIONS
R=10*10**3 #Ω
C=(0.1/(2*3.14*f*R))*10**9 #Capicitor

#RESULTS
print"The value of C=",round(C,3),"nF";
The value of C= 15.924 nF

Example 9.25 , Page no:281

In [4]:
import math
from __future__ import division

#initialisation of variables
R1=10*10**3 #Ω
R2=20*10**3 #Ω
R3=20*10**3 #Ω

#CALCULATIONS
Av=-((R2*R3)/(R1*(R2+R3)))

#RESULTS
print"The value of Av=",round(Av,3);
The value of Av= -1.0