#importing modules
import math
from __future__ import division
#Variable declaration
e=1.6*10**-19; #charge(coulomb)
v=3*10**3; #velocity of matter wave(m/s)
h=6.6*10**-34; #plank's constant(Js)
lamda=600*10**-9; #wavelength(m)
#Calculation
Ej=h*v/lamda; #matter wave energy(J)
E=Ej/e; #matter wave energy(eV)
#Result
print "matter wave energy is",round(E*10**5,2),"*10**-5 eV"
print "answer given in the book is wrong"
#importing modules
import math
from __future__ import division
#Variable declaration
e=1.6*10**-19; #charge(coulomb)
c=3*10**10; #velocity of light(m/s)
h=6.6*10**-34; #plank's constant(Js)
Eg=3; #energy gap(eV)
#Calculation
lamda=h*c*10**9/(Eg*e); #wavelength of photon(nm)
#Result
print "wavelength of photon is",lamda,"nm"
print "answer given in the book is wrong"
#importing modules
import math
from __future__ import division
#Variable declaration
e=1.6*10**-19; #charge(coulomb)
E2_E1=3*e; #energy gap(J)
Kb=1.38*10**-23; #boltzmann constant(J/K)
T=323; #temperature(K)
#Calculation
n=math.exp(-E2_E1/(Kb*T)); #ratio in higher and lower energy
#Result
print "ratio in higher and lower energy is",round(n*10**47,4),"*10**-47"
print "answer given in the book is wrong"
#importing modules
import math
from __future__ import division
#Variable declaration
c=2.998*10**8; #velocity of light(m/s)
Kb=1.381*10**-23; #boltzmann constant(J/K)
T=1000; #temperature(K)
h=6.626*10**-34; #plank's constant(Js)
lamda=0.5*10**-6; #wavelength(m)
#Calculation
v=c/lamda; #frequency(Hz)
BA=1/(math.exp(h*v/(Kb*T))-1); #ratio of emission
#Result
print "ratio of emission is",round(BA*10**13,1),"*10**-13"
print "answer varies due to rounding off errors"
#importing modules
import math
from __future__ import division
#Variable declaration
c=2.998*10**8; #velocity of light(m/s)
h=6.626*10**-34; #plank's constant(Js)
e=1.602*10**-19; #charge(coulomb)
Eg=1.43; #energy gap(eV)
#Calculation
lamda=h*c*10**6/(Eg*e); #wavelength(micro m)
#Result
print "wavelength is",round(lamda,2),"micro m"