diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3875/CH11/EX11.19/Ex11_19.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3875/CH11/EX11.19/Ex11_19.sce')
-rw-r--r-- | 3875/CH11/EX11.19/Ex11_19.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/3875/CH11/EX11.19/Ex11_19.sce b/3875/CH11/EX11.19/Ex11_19.sce new file mode 100644 index 000000000..063394f07 --- /dev/null +++ b/3875/CH11/EX11.19/Ex11_19.sce @@ -0,0 +1,18 @@ +clc;
+clear;
+H=6.626*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=80 //Potential difference in V
+a=0.35 //lattice parameter in nm
+h=1 //x intercept of parallel plane
+k=1 //y intercept of parallel plane
+l=1 //z intercept of parallel plane
+
+//calculation
+lambda=H/sqrt(2*m*e*V_0) //wavelength in m
+d_111=(a/sqrt(h^2+k^2+l^2))*10^-9 //interplanar distance in m
+theta1_degrees= floor(asin((lambda)/(2*d_111))*(180/%pi)) //degrees part of angle
+theta1_minutes=((asin((lambda)/(2*d_111))*(180/%pi))-theta1_degrees)*60 //minutes part of angle
+mprintf("The Braggs angle is = %d degrees and %d minutes",theta1_degrees,theta1_minutes)
+//The answer varies due to round off error.
|