summaryrefslogtreecommitdiff
path: root/2912/CH4/EX4.2/Ex4_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '2912/CH4/EX4.2/Ex4_2.sce')
-rwxr-xr-x2912/CH4/EX4.2/Ex4_2.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2912/CH4/EX4.2/Ex4_2.sce b/2912/CH4/EX4.2/Ex4_2.sce
new file mode 100755
index 000000000..3fe41974e
--- /dev/null
+++ b/2912/CH4/EX4.2/Ex4_2.sce
@@ -0,0 +1,18 @@
+//chapter 4
+//example 4.2
+//Find glancing angle
+//page 75
+clear;
+clc;
+//given
+h=1,k=1,l=0; //miller indices
+a=0.26; // in nanometer (lattice constant)
+lambda=0.065; // in nanometer (wavelength)
+n=2; // order
+//calculate
+d=a/sqrt(h^2+k^2+l^2); // calculation of interlattice spacing
+// Since 2dsin(theta)=n(lambda)
+// therefore we have
+theta=asind(n*lambda/(2*d));
+printf('\nThe glancing angle is \t%.2f degree',theta);
+//Note: there is slight variation in the answer due to round off