summaryrefslogtreecommitdiff
path: root/3411/CH5/EX5.5.u1/Ex5_5_u1.sce
blob: 465d3c0611058c6d3934fafc36fbb8a96a3b0a00 (plain)
1
2
3
4
5
6
7
8
9
//Example 5_5_u1
clc();
clear;
//To find out the interplanar spacing of the reflecting planes of the crystal
theta=28       //units in degrees
lamda=0.12      //units in nm
n=2
d=(n*lamda)/(2*sin(theta*(%pi/180)))
printf("The interplanar spacing of the reflecting planes of the crystal is d=%.2fnm",d)