from __future__ import division
#e.g 8.1
Ie=10*10**-3#
Ic=9.8*10**-3#
#Ie=Ib+Ic
Ib=Ie-Ic#
print "Ib=%0.2f"%(Ib*10**3),'mA'
from __future__ import division
Ie=6.28*10**-3#
Ic=6.20*10**-3#
a=Ic/Ie#
print "a=%0.4f"%a
from __future__ import division
#e.g8.3
a=0.967#
Ie=10*10**-3#
Ic=Ie*a##a=Ic/Ie
print "Ic=%0.2f"%(Ic*10**3),"mA"
Ib=Ie-Ic#
print "Ib=%0.2f"%(Ib*10**3),"mA"
from __future__ import division
Ie=10*10**-3#
alpha=0.987#
Ic=Ie*alpha##alpha=Ic/Ie
print "Ic=%0.2f"%(Ic*10**3),"mA"
Ib=Ie-Ic#
print "Ib=%0.2f"%(Ib*10**3),"mA"
from __future__ import division
alpha=0.975#
beta=200#
beta=(alpha/(1-alpha))#
print "beta=",beta
alpha=(beta/(1+beta))#
print "alpha=",alpha
from __future__ import division
BETA=100#
IC=40*10**-3#
IB=IC/BETA#
IE=IC+IB#
print "IE=%0.2f"%(IE*10**3),"mA"
from __future__ import division
beta=150#
Ie=10*10**-3#
alpha=beta/(1+beta)
Ic=alpha*Ie##as alpha=(Ic/Ie)
print "Ic=%0.2f"%(Ic*10**3),"mA"
Ib=Ie-Ic##as Ie=Ib+Ic
print "Ib=%0.2f"%(Ib*10**3),"mA"
from __future__ import division
beta=170#
Ic=80*10**-3#
Ib=Ic/beta##beta=(Ic/Ib)
print "Ic=%0.2f"%(Ic*10**3),"mA"
Ie=Ic+Ib#
print "Ie=%0.2f"%(Ie*10**3),"mA"
from __future__ import division
Ib=125*10**-6#
beta=200#
Ic=beta*Ib#
print "Ic=%0.2f"%(Ic*10**3),"mA"
Ie=Ic+Ib#
print "Ie=%0.2f"%(Ie*10**3),"mA"
from __future__ import division
Ie=12*10**-3#
beta=140#
Ib=Ie/(1+beta)#
print "Ib=%0.2f"%(Ib*10**3),"mA"
Ic=Ie-Ib##as Ie=Ib+Ic
print "Ic=%0.2f"%(Ic*10**3),"mA"
from __future__ import division
IB=105*10**-6#
IC=2.05*10**-3#
BETA=IC/IB#
print "BETA=",BETA
ALPHA=BETA/(1+BETA)#
print "ALPHA=",ALPHA
IE=IC+IB#
print "IE=%0.2f"%(IE*10**3),"mA"
DELTA_IB=27*10**-6#
DELTA_IC=0.65*10**-3#
IBn=IB+DELTA_IB#
ICn=IC+DELTA_IC#
BETAn=ICn/IBn#
print "BETAn=",BETAn
from __future__ import division
#e.g 8.12
alpha=0.98#
Ico=5*10**-6#
Ib=100*10**-6#
Ic=((alpha*Ib)/(1-alpha))+(Ico/(1-alpha))#
print "Ic=%0.2f"%(Ic*10**3),"mA"
Ie=Ic+Ib#
print "Ie=%0.2f"%(Ie*10**3),"mA"
from __future__ import division
Icbo=10*10**-6#
beta=50#
#Value of collector current when Ib=0.25*10**-3#
Ib=0.25*10**-3#
Ic=(beta*Ib)+(1+beta)*Icbo#
print "Ic=%0.2f"%(Ic*10**3),"mA"
#Value of new collector current if temperature rises to 50 degree
t1=27#
t2=50#
Icbo50=Icbo*2**((t2-t1)/10)#
print "Icbo50=%0.2f"%(Icbo50*10**6),"microA"
#collector current at 50 degree
Ic=beta*Ib+(1+beta)*Icbo50#
print "Ic=%0.2f"%(Ic*10**3),"mA"