summaryrefslogtreecommitdiff
path: root/3875/CH11/EX11.13/11_13.sce
blob: f6607a95f0feb17011d548a0fc64164ffc11a23d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc;
clear;
h=6.63*10^-34 //Plancks constant in J-s
m=9.1*10^-31 //mass in kg
e=1.6*10^-19 //charge in C
V_0=844 //voltage in V
n=1 //first order reflection
tetha=58 //Braggs angle in degree 

//calculation
lambda=(h/sqrt(2*m*e*V_0))
d=((n*lambda)/(2*sind(tetha)))
mprintf("The interplanar spacing is = %1.2e m or 0.249e-10 m",d)
//The answer varies due to round off error.