diff options
Diffstat (limited to '3869/CH7/EX7.9')
-rw-r--r-- | 3869/CH7/EX7.9/Ex7_9.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/3869/CH7/EX7.9/Ex7_9.sce b/3869/CH7/EX7.9/Ex7_9.sce new file mode 100644 index 000000000..a1e724e88 --- /dev/null +++ b/3869/CH7/EX7.9/Ex7_9.sce @@ -0,0 +1,19 @@ +clear +// +// +// + +//Variable declaration +theta=30*%pi/180 //glancing angle(radian) +h=1 +k=1 +l=1 +lamda=1.5418 //wavelength(angstrom) +n=1 //order + +//Calculation +d=n*lamda/(2*sin(theta)) //interplanar spacing(angstrom) +a=d*sqrt((h**2)+(k**2)+(l**2)) //interatomic spacing(angstrom) + +//Result +printf("\n interatomic spacing is %0.2f angstrom",a) |