summaryrefslogtreecommitdiff
path: root/3411/CH5/EX5.9.u1/Ex5_9_u1.sce
blob: 7c8c82e266d30b28fba8d0c1ffc2d2706536d3f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example 5_9_u1
clc();
clear;
//To determine the interplanar spacing
h=6.63*10^-34      //Plancks Constant
m=9.1*10^-31
e=1.6*10^-19
v=844
lamda=h/sqrt(2*m*e*v)            //units in mts
n=1
theta=58      //units in degrees
d=(n*lamda)/(2*sin(theta*(%pi/180)))           //units in mts
printf("The interplanar spacing d=")
disp(d)
printf("mts")