#Given
V=100000.0
a=12400
#Calculation
w=a/V
#Result
print"Cut off wavelength is",w,"A"
#Given
V=25000.0
#Calculation
w=a/V
#Result
print"Minimum wavelength is",w,"A"
#Given
e=1.6*10**-19 #C
V=10*10**3
m=9.1*10**-31 #Kg
#Calculation
import math
v=math.sqrt((2*e*V)/m)
#Result
print"Velocity of electron is",round(v*10**-7,1),"*10**7 m/s"
#Given
h=6.62*10**-34 #j-s
e=1.6*10**-19 #C
c=3*10**8
w=10**-10
#Calculation
E=((h*c)/w)/e
#Result
print"Energy of each electron is",round(E*10**-3,2),"Kev"
#Given
w=10**-10
#Calculation
V=a/w
#Result
print"Minimum applied potential is",V*10**-3,"KV"
#Given
V=40*10**3 #V
e=1.6*10**-19 #C
w=0.310*10**-10
c=3.0*10**8
#Calculation
h=(V*e*w)/c
#Result
print"Planck's constant is",round(h*10**34,2)*10**-34,"Joule-sec"
#Given
w=1.93
a=25
b=49.0
#Calculation
W=(a/b)**2*w
#Result
print"Ka lines for tin and barium is",round(W,1),"A"
#Given
R=1.1*10**7 #/m
Z=92
#Calculation
W=4/(3*R*(Z-1)**2)
#Result
print"Wavelength is",round(W*10**10,3),"A"
#Given
I0=23.0
#Calculation
import math
x=-(10/I0)*math.log(10)*math.log10(0.5)
#Result
print"Thickness is",round(x,2),"cm"
#Given
x=1.05*10**-3 #m
a=8930
u=2466.7 #m
#Calculation
p=u/a
#Result
print"The mass absorption coefficient of copper is",round(p,3),"m**3/kg"
#Given
d=2.820 #A
q=2
a=0.1491
#Calculation
import math
l=d*a*q
l1=math.asin((q*l)/(q*d))*180/3.14
#Result
print"The wavelength of the x-ray is",round(l,3),"A"
print"The angle is",round(l1,0),"degree"
#Given
d=3.84*10**-8
n=2
a=10*0.05
h=6.6*10**-34
e=10**-10
m=1.67*10**-27
A=30
#Calculation
import math
l=n*d*math.sin(A*3.14/180.0)
v=(h/(m*l*10))
#Result
print"The wave length of the neutron beam is",round(l*10**8,2),"10**-8"
print"Speed is", round(v,2),"*10**3 m/sec"
#Given
l=1.8*10**-18
#Calculation
a=1*l
#Result
print"Interatomic spacing is",a,"m"
#Given
d=2.814
a=9 #degree
n1=1
n2=2
n3=3
n4=4
n5=5
#Calculation
import math
l1=n2*d*math.sin(a*3.14/180.0)
l2=l1/2.0
l3=l1/3.0
l4=l1/4.0
l5=l1/5.0
#Result
print"Wavelength is",round(l1,4),"A\n",round(l2,4),"A\n",round(l3,4),"A\n",round(l4,4),"A\n",round(l5,4),"A"
#Given
w=0.71 #A
a=2.814
#Calculation
import math
A=math.asin(w/a)*180/3.14
#Result
print"The glancing angle on the cube face is",round(A,0)
#Given
w=2*10**-11
q=45
l=3
#Calculation
import math
r=1*w*math.sqrt(l)/(2*math.sin(q*3.14/180.0))
#Result
print"The interatomic spacing of the crystal is",round(r*10**11,2),"10**-11","m"
#Given
a=5
b=12
c=18
l=0.586 #A
#Calculation
import math
d=l/(2*math.sin(a*3.14/180.0))
d1=l/(math.sin(b*3.14/180.0))
d2=1/(2*math.sin(c*3.14/180.0))
#Result
print"The spacing from first maximum is",round(d,3),"A"
print"The spacing from second maximum is",round(d1,3),"A"
print"The spacing from third maximum is",round(d2,3),"A"
#Given
w=1.549
d=4.255
n=1
n1=2
#Calculation
import math
a=n*w/(2*d)
A=math.asin(a)*180/3.14
a1=n1*w/(2*d)
A1=math.asin(a1)*180/3.14
#Result
print"Glacing angles are",round(A,2),"degree and",round(A1,2),"Degree"
#Given
a=28 #Degree
w=0.32*10**-9
n=1
#Calculation
import math
d=n*w/(2.0*math.sin(a*3.14/180.0))
#Result
print"Distance between atomic planes is",round(d*10**9,2),"nm"