summaryrefslogtreecommitdiff
path: root/3768/CH4/EX4.3/Ex4_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3768/CH4/EX4.3/Ex4_3.sce')
-rw-r--r--3768/CH4/EX4.3/Ex4_3.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3768/CH4/EX4.3/Ex4_3.sce b/3768/CH4/EX4.3/Ex4_3.sce
new file mode 100644
index 000000000..b69bc2af1
--- /dev/null
+++ b/3768/CH4/EX4.3/Ex4_3.sce
@@ -0,0 +1,19 @@
+//Example number 4.3, Page number 66
+
+clc;clear;
+close;
+
+//Variable declaration
+a=0.28*10**-9; //lattice spacing(m)
+n=2; //order
+lamda=0.071*10**-9; //wavelength(m)
+h=1;
+k=1;
+l=0;
+//Calculation
+d110=a/sqrt(h**2+k**2+l**2); //spacing(m)
+theta=asin(n*lamda/(2*d110)); //glancing angle(radian)
+theta=theta*180/%pi; //glancing angle(degrees)
+//Result
+printf("glancing angle is %.2f degree",theta)
+//answer in the book is wrong