#importing modules
import math
from __future__ import division
#Variable declaration
ni=2.5*10**19; #concentration(per m**3)
d=4.4*10**28; #density(per m**3)
n=4*10**8; #number of Ge atoms
#Calculation
Na=d/n; #density of acceptor atoms
np=ni**2/Na;
npbyni=np/ni; #ratio of density of electrons
#Result
print "ratio of density of electrons is",round(npbyni,3)
#importing modules
import math
from __future__ import division
#Variable declaration
ni=2.4*10**19; #concentration(per m**3)
d=4*10**28; #density(per m**3)
n=10**6; #number of Ge atoms
#Calculation
Nd=d/n; #density of acceptor atoms
np=ni**2/Nd; #hole concentration(holes/m**3)
#Result
print "hole concentration is",np,"holes/m**3"
#importing modules
import math
from __future__ import division
#Variable declaration
me=9.1*10**-31; #mass of electron(kg)
kb=1.38*10**-23; #boltzmann constant
T=300; #temperature(K)
h=6.62*10**-34; #planck's constant
Eg=0.7; #band gap(eV)
e=1.6*10**-19; #charge(c)
#Calculation
x=2*math.pi*me*kb*T/(h**2);
n=2*(x**(3/2))*math.exp(-Eg*e/(2*kb*T)); #density of holes and electrons(per m**3)
#Result
print "density of holes and electrons is",round(n/10**19,3),"*10**19 per m**3"
#importing modules
import math
from __future__ import division
#Variable declaration
kb=1.38*10**-23; #boltzmann constant
T=300; #temperature(K)
m=6;
Eg=0.7; #band gap(eV)
#Calculation
x=3*kb*T*math.log(m)/4;
EF=(Eg/2)+x; #position of Fermi level(eV)
#Result
print "position of Fermi level is",EF,"eV"
print "answer in the book is wrong"
#importing modules
import math
from __future__ import division
#Variable declaration
T1=300; #temperature(K)
T2=330; #temperature(K)
E=0.3; #band gap(eV)
#Calculation
Ec_Ef=T2*E/T1; #position of Fermi level(eV)
#Result
print "position of Fermi level is",Ec_Ef,"eV"
#importing modules
import math
from __future__ import division
#Variable declaration
n=2.05*10**22; #charge carrier density
e=1.602*10**-19; #charge of electron
#Calculation
RH=1/(n*e); #hall coefficient(m**3/C)
#Result
print "hall coefficient is",round(RH*10**4,3),"*10**-4 m**3/C"
#importing modules
import math
from __future__ import division
#Variable declaration
n=5*10**28; #charge carrier density
e=1.6*10**-19; #charge of electron
#Calculation
RH=-1/(n*e); #hall coefficient(m**3/C)
#Result
print "hall coefficient is",round(RH*10**9,3),"*10**-9 m**3/C"
#importing modules
import math
from __future__ import division
#Variable declaration
a=4.28*10**-10; #side(m)
e=1.6*10**-19; #charge of electron
#Calculation
n=2/(a**3);
RH=-1/(n*e); #hall coefficient(m**3/C)
#Result
print "hall coefficient is",round(RH*10**9,3),"*10**-9 m**3/C"
#importing modules
import math
from __future__ import division
#Variable declaration
rho=9*10**-3; #resistivity(ohm m)
mew=0.03; #mobility(m**2/Vs)
#Calculation
sigma=1/rho;
RH=mew/sigma; #hall coefficient(m**3/C)
#Result
print "hall coefficient is",RH*10**4,"*10**-4 m**3/C"
#importing modules
import math
from __future__ import division
#Variable declaration
rho=9*10**-3; #resistivity(ohm m)
RH=3.6*10**-4; #hall coefficient(m**3/C)
e=1.6*10**-19; #charge of electron
#Calculation
sigma=1/rho;
rho=1/RH;
n=rho/e; #density of charge carrier(per m**3)
mew=sigma*RH; #mobility(m**2/Vs)
#Result
print "density of charge carrier is",round(n/10**22,5),"*10**22 per m**3"
print "mobility is",mew,"m**2/Vs"
#importing modules
import math
from __future__ import division
#Variable declaration
e=1.6*10**-19; #charge of electron
z=0.3*10**-3; #thickness(m)
VH=1*10**-3; #hall voltage(V)
Ix=10*10**-3; #current(A)
Bz=0.3; #magnetic field(T)
#Calculation
n=Ix*Bz/(VH*z*e); #charge carrier concentration(m**-3)
#Result
print "charge carrier concentration is",n,"m**-3"
#importing modules
import math
from __future__ import division
#Variable declaration
rho=0.00912; #resistivity(ohm m)
RH=3.55*10**-4; #hall coefficient(m**3/C)
B=0.48; #flux density(Wb/m**2)
#Calculation
sigma=1/rho;
theta_H=math.atan(sigma*B*RH); #hall angle(radian)
theta_H=theta_H*180/math.pi; #hall angle(degrees)
#Result
print "hall angle is",round(theta_H,4),"degrees"