summaryrefslogtreecommitdiff
path: root/3411/CH5/EX5.9/Ex5_9.sce
blob: c3f7f1e03bc6e57974e153d261c78e9e18c2efa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example 5_9
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")