From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3875/CH11/EX11.19/Ex11_19.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 3875/CH11/EX11.19/Ex11_19.sce (limited to '3875/CH11/EX11.19/Ex11_19.sce') 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. -- cgit