#from the given figure:
Vcc=12 #supply voltage in volts
Vbe=0.7 #base emitterv voltage in volts
Rb=470.0 #base resistor in kohm
B=101
Rc=3.0 #collector resistor in kohm
ro=50.0 #resistance in kohm
#calculation:
print "\nCase-I"
#Case-I
Ib=(Vcc-Vbe)/Rb #base current in microA
Ie=(B+1)*Ib #emitter current in mA
re=26/Ie #resistance in ohm
X=B*re
X=X/1000
Zi=(Rb*X)/(Rb+X) #input resistance in kohm
Zo=Rc #resistance in kohm
Av=-Rc/re #voltage gain
print "re=",round(re,2),"ohm"
print "Input resistance=",round(Zi,2),"kohm"
print "Output resistance=",Zo,"kohm"
print "Voltage gain=",round(Av*1000,2)
#Case-II(ro=50kohm)
Zo=(ro*Rc)/(ro+Rc) #output resistance in kohm
Av=-Zo/re #voltage gain
print "\nCase-II"
print "Output resistance=",round(Zo,2),"kohm"
print "Voltage gain=",round(Av*1000,2)
#from the given figure:
Vcc=22 #supply voltage in volts
Vbe=0.7 #base emitter voltage in volts
R1=56.0 #resistor in kohm
R2=8.2 #resistor in kohm
B=90.0
Rc=6.8 #collector resistor in kohm
Re=1.5 #emitter resistance in kohm
#calculations:
#Case-I
Vb=(R2*Vcc)/(R1+R2) #Base voltage in volts
Ve=Vb-Vbe #Emitter voltage in volts
Ie=Ve/Re #Emitter current in mA
re=26/Ie #in ohm
R=(R1*R2)/(R1+R2) #in ohm
X=B*re
X=X/1000
Zi=(R*X)/(R+X) #input resistance in kohm
Zo=Rc #output resistance in kohm
Av=-Rc/re #voltage gain
print
print "Case-I"
print "re=",round(re,2),"ohm"
print "Input resistance=",round(Zi,2),"kohm"
print "Output resistance=",Zo,"kohm"
print "Voltage gain=",round(Av*1000,2)
#Case-II
Zo=(Rc*ro)/(Rc+ro) #output resistance in kohm
Av=-Zo/re #voltage gain
print "\nCase-II"
print "Output resistance=",round(Zo,2),"kohm"
print "Voltage gain=",round(Av*1000,2)
#from the given figure:
Vcc=20 #supply voltage in volts
Vbe=0.7 #base emitter voltage in volts
Rb=470.0 #Base resistor in kohm
B=120.0
Rc=2.2 #collector resistor in kohm
Re=0.56 #emitter resistance in kohm
ro=40 #in kohm
#calculations:
Ib=(Vcc-Vbe)/(Rb+(B+1)*Re) #base current in microA
Ie=(B+1)*Ib #emitter current in mA
re=26/Ie #in ohm
Zb=B*(re+Re*1000)
Zb=Zb/1000
Zi=(Rb*Zb)/(Rb+Zb) #input resistance in kohm
Zo=Rc #output resistance in kohm
Av=-(B*Rc)/Zb #voltage gain
print "re=",round(re,2),"ohm"
print "Input resistance=",round(Zi,2),"kohm"
print "Output resistance=",Zo,"kohm"
print "Voltage gain=",round(Av,2)
#from the calculation of example 5.3:
re=5.99 #resistance in ohm
Rb=470.0 #Base resistor in kohm
B=120.0
Rc=2.2 #collector resistor in kohm
#Calculation:
Zb=B*re/1000
Zi=(Rb*Zb)/(Rb+Zb) #input resistance in kohm
Zo=Rc #output resistance in kohm
Av=-Rc/re #voltage gain
print "re=",round(re,2),"ohm"
print "Input resistance=",round(Zi*1000,2),"kohm"
print "Output resistance=",Zo,"kohm"
print "Voltage gain=",round(Av*1000,2)
#from the given figure:
Vcc=16 #supply voltage in volts
Vbe=0.7 #base emitter voltage in volts
R1=90.0 #resistor in kohm
R2=10.0 #resistor in kohm
B=210.0
Rc=2.2 #collector resistor in kohm
Re=0.68 #emitter resistance in kohm
ro=50 #resistance in kohm
#Calculations:
Vb=(R2*Vcc)/(R1+R2) #Base voltage in volts
Ve=Vb-Vbe #Emitter voltage in volts
Ie=Ve/Re #Emitter current in mA
re=26/Ie #in ohm
Rb=(R1*R2)/(R1+R2) #in ohm
X=B*Re
#X=X/1000
Zi=(Rb*X)/(Rb+X) #input resistance in kohm
Zo=Rc #output resistance in kohm
Av=-Rc/Re #voltage gain
print "re=",round(re,2),"ohm"
print "Input resistance=",round(Zi,2),"kohm"
print "Output resistance=",Zo,"kohm"
print "Voltage gain=",round(Av,2)
#from the answers obtained in example-5.5
re=19.64
B=210
X=B*re
X=X/1000
Zi=(Rb*X)/(Rb+X) #input resistance in kohm
Zo=Rc #output resistance in kohm
Av=-Rc/re #voltage gain
print "re=",round(re,2),"ohm"
print "Input resistance=",round(Zi,2),"kohm"
print "Output resistance=",Zo,"kohm"
print "Voltage gain=",round(Av*1000,2)
#from the given figure:
alpha=0.98 #constant
ro=1 #resistance in Mohm
Rc=5 #collector resistance in kohm
Re=1 #emitter resistance in kohm
Vee=2 #emitter voltage in volts
Vcc=8 #collector voltage in volts
Vbe=0.7 #base emitter voltage in volts
#calculations:
Ie=(Vee-Vbe)/Re #emitter current in mA
re=26/Ie #in ohm
Re=Re*1000 #emitter resistance in ohm
Zi=(Re*re)/(Re+re) #input resistance in ohm
Zo=Rc #output resistance in kohm
Av=Rc/re #voltage gain
print "re=",round(re,2),"ohm"
print "Input resistance=",round(Zi,2),"kohm"
print "Output resistance=",Zo,"kohm"
print "Voltage gain=",round(Av*1000,2)
#from the given question:
Rc=3 #collector resistance in kohm
Rl=4.7 #emitter resistance in kohm
re=10.71 #resistance in ohm
Zi=1.07 #input impedance in kohm
Rs=0.3 #source resistance in kohm
#calculation:
X=(Rc*Rl)/(Rc+Rl) #temporary variable
Avl=(-X/re)*1000 #voltage gain with load
Avs=(Zi*Avl)/(Zi+Rs) #voltage gain with source impedance
Zo=Rc
print "Avl=",round(Avl,2)
print "Avs=",round(Avs,2)
print "Zi=",Zi,"kohm"
print "Zo=",Zo,"kohm"
#from the given question:
Avnl=-280 #no load voltage gain
Rl=4.7 #emitter resistance in kohm
Zi=1.07 #input impedance in kohm
Rs=0.3 #source resistance in kohm
Zo=3 #output impedance in kohm
#calculation:
print "a.)"
Avl=(Avnl*Rl)/(Zo+Rl) #voltage gain with load
print "Avl=",round(Avl,2)
print "\nb.)"
X=(Avnl*Rl)/(Zo+Rl) #temporary variable
Avs=(Zi*X)/(Zi+Rs) #gain with source impedance
print "Avs=",round(Avs,2)
#from the given figure:
Vcc=18 #supply voltage in volts
Rb=3.3 #base resistance in Mohm
B=8000
Vbe=1.6 #base emitter volateg in volts
Re=390 #emitter resistance in ohm
#calculatons:
X=B*Re #temporary volateg
X=X/1000000
Ib=(Vcc-Vbe)/(Rb+X) #base current in microA
Ie=(B+1)*Ib #emitter current in mA
Ve=Ie*Re #emitter voltage in volts
Ve=Ve/1000
Vb=Ve/1000+Vbe #base voltage in volts
Vc=Vcc #collector voltage in volts
print "Base current=",round(Ib,2),"microA"
print "Emitter current=",round(Ie/1000,2),"mA"
print "Emitter voltage=",round(Ve/1000,2),"V"
print "Base voltage=",round(Vb,2),"V"
print "Collector voltage=",Vc,"V"
#from the given figure:
Vcc=18 #supply voltage in volts
Rb=2.0 #base resistance in Mohm
B1=140
B2=180
Rc=75.0 #emitter resistance in ohm
Vbe1=0.7 #base emitter voltage in Volts
#calculations:
X=B1*B2*Rc #temporary variable
X=X/1000000
Ib1=(Vcc-Vbe1)/(Rb+X) #base current in Q1 in microA
Ib2=B1*Ib1 #base current in Q2 in mA
Ie1=Ic1=Ib2
Ic2=B2*Ib2 #collector current in Q2 in mA
Ic=Ie1+Ic2 #current through in Resistance Rc in mA
G=(round((Ic/1000),2)*Rc)/1000 #temporary variable
Ve1=Vcc-G #emitter voltage in volts in Q1
Vb1=Ve1-Vbe1 #base voltage in Q1 in volts
print "Base current in Q1=",round(Ib1,2),"microA"
print "Base current in Q2=",round(Ib2/1000,2),"mA"
print "Collector current in Q2=",round(Ic2/1000,2),"mA"
print "Current through in Resistance Rc=",round(Ic/1000,2),"mA"
print "Emitter voltage in Q1=",round(Ve1,2),"V"
print "Base voltage in Q1=",round(Vb1,2),"V"