diff options
Diffstat (limited to '3869/CH6/EX6.16/Ex6_16.sce')
-rw-r--r-- | 3869/CH6/EX6.16/Ex6_16.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/3869/CH6/EX6.16/Ex6_16.sce b/3869/CH6/EX6.16/Ex6_16.sce new file mode 100644 index 000000000..39f25ebdb --- /dev/null +++ b/3869/CH6/EX6.16/Ex6_16.sce @@ -0,0 +1,26 @@ +clear +// +// +// + +//Variable declaration +a=5.63*10**-10 //lattice constant(m) +h=1 +k=1 +l=1 //miller indices +theta=27.5*%pi/180 //glancing angle(radian) +n=1 //order +h=6.625*10**-34 //planck's constant +c=3*10**10 //velocity of light(m/sec) +e=1.6*10**-19 //charge of electron(c) + +//Calculation +d111=a/sqrt(h**2+k**2+l**2) +lamda=2*d111*sin(theta)/n //wavelength of X-ray beam(m) +lamda=int(lamda*10**10) //wavelength of X-ray beam(angstrom) +E=h*c/(lamda*10**-10*e) //energy of X-ray beam(eV) + +//Result +printf("\n wavelength of X-ray beam is %0.3f angstrom",lamda) +printf("\n energy of X-ray beam is %0.2f *10**5 eV",E/10**5) +printf("\n answer for energy given in the book is wrong") |