#importing modules
import math
from __future__ import division
#Variable declaration
M=60.2; #molecular weight
Na=6.023*10**26; #avagadro number(kg/mole)
n=4;
rho=6250; #density(kg/m**3)
#Calculation
a=(n*M/(rho*Na))**(1/3); #lattice constant(m)
#Result
print "lattice constant is",round(a*10**10),"*10**-10 m"
#importing modules
import math
from __future__ import division
#Variable declaration
M=63.5; #molecular weight
Na=6.023*10**26; #avagadro number(kg/mole)
n=4;
r=1.278*10**-8; #atomic radius(cm)
#Calculation
a=2*math.sqrt(2)*r; #lattice constant(m)
rho=n*M/(a**3*Na); #density(kg/cm**3)
#Result
print "density is",round(rho*10**3,2),"gm/cm**3"
print "answer in the book varies due to rounding off errors"
#importing modules
import math
from __future__ import division
#Variable declaration
pf_BCC=math.pi*math.sqrt(3)/8; #packing factor for BCC
pf_FCC=math.pi/(3*math.sqrt(2)); #packing factor of FCC
#Calculation
r=pf_BCC/pf_FCC; #ratio of densities
#Result
print "ratio of densities is",round(r,2)
#importing modules
import math
from __future__ import division
#Variable declaration
M=55.85; #molecular weight
Na=6.02*10**26; #avagadro number(kg/mole)
n=2;
rho=7860; #density(kg/m**3)
#Calculation
a=(n*M/(rho*Na))**(1/3); #lattice constant(m)
#Result
print "lattice constant is",round(a*10**10,4),"angstrom"
#importing modules
import math
from __future__ import division
#Variable declaration
M=58.5; #molecular weight
Na=6.02*10**26; #avagadro number(kg/mole)
n=4;
rho=2189; #density(kg/m**3)
#Calculation
a=(n*M/(rho*Na))**(1/3); #lattice constant(m)
#Result
print "lattice constant is",round(a*10**10,1),"angstrom"
#importing modules
import math
from __future__ import division
#Variable declaration
M=6.94; #molecular weight
Na=6.02*10**26; #avagadro number(kg/mole)
n=2;
rho=530; #density(kg/m**3)
#Calculation
a=(n*M/(rho*Na))**(1/3); #lattice constant(m)
#Result
print "lattice constant is",round(a*10**10,3),"angstrom"
#importing modules
import math
from __future__ import division
#Variable declaration
r1=1.258*10**-10; #radius(m)
r2=1.292*10**-10; #radius(m)
#Calculation
a_bcc=4*r1/math.sqrt(3);
v=a_bcc**3;
V1=v/2;
a_fcc=2*math.sqrt(2)*r2;
V2=a_fcc**3/4;
V=(V1-V2)*100/V1; #percent volume change is",V,"%"
#Result
print "percent volume change is",round(V,3),"%"
print "answer in the book varies due to rounding off errors"
#importing modules
import math
from __future__ import division
#Variable declaration
a=0.356*10**-9; #cube edge(m)
w=12; #atomic weight
Na=6.02*10**26; #avagadro number(kg/mole)
#Calculation
n=8/(a**3); #number of atoms/m**3
m=w/Na; #mass(kg)
rho=m*n; #density of diamond(kg/m**3)
#Result
print "number of atoms/m**3 is",round(n/10**29,2),"*10**29"
print "density of diamond is",round(rho,2),"kg/m**3"
print "answer in the book is wrong"
#importing modules
import math
from __future__ import division
from sympy import Symbol
#Variable declaration
r=Symbol('r')
#Calculation
a=4*r/math.sqrt(2);
R=(4*r/(2*math.sqrt(2)))-r; #maximum radius of sphere
#Result
print "maximum radius of sphere is",round(R/r,3),"r"
#importing modules
import math
from __future__ import division
from sympy import Symbol
#Variable declaration
r=Symbol('r')
#Calculation
a=4*r/math.sqrt(3);
R=(a/2)-r; #radius of largest sphere
#Result
print "radius of largest sphere is",round(R/r,3),"r"