summaryrefslogtreecommitdiff
path: root/3411/CH5/EX5.5/Ex5_5.sce
blob: 2dbc4f1443051b3c3c03a61048c89d2931527fec (plain)
1
2
3
4
5
6
7
8
9
//Example 5_5
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)