blob: b30ba295fd679d1cc67ea4bee71b9b84909d5d62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//Example number 4.6, Page number 68
clc;clear;
close;
//Variable declaration
e=1.6*10**-19; //charge(c)
m=9.1*10**-31; //mass(kg)
h=6.625*10**-34; //plank constant
n=1; //order
theta=9+(12/60)+(25/(60*60)); //angle(degree)
V=235.2; //kinetic energy of electron(eV)
//Calculation
theta=theta*%pi/180; //angle(radian)
lamda=h*10**10/sqrt(2*m*e*V);
d=n*lamda/(2*sin(theta)); //interplanar spacing(angstrom)
//Result
printf("interplanar spacing is %.3f Angstrom",d)
//answer in the book is wrong
|