summaryrefslogtreecommitdiff
path: root/3665/CH3/EX3.5/Ex3_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3665/CH3/EX3.5/Ex3_5.sce')
-rw-r--r--3665/CH3/EX3.5/Ex3_5.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/3665/CH3/EX3.5/Ex3_5.sce b/3665/CH3/EX3.5/Ex3_5.sce
new file mode 100644
index 000000000..c402c7bec
--- /dev/null
+++ b/3665/CH3/EX3.5/Ex3_5.sce
@@ -0,0 +1,20 @@
+clc//
+//
+//
+
+//Variable declaration
+a=0.19; //lattice constant(nm)
+h=1;
+k=1;
+l=1;
+lamda=0.058; //wavelength of X rays(nm)
+n=2; //second order
+
+//Calculation
+d=a/sqrt(h^2+k^2+l^2); //distance between planes(nm)
+x=n*lamda/(2*d);
+theta=asin(x); //glancing angle(radian)
+theta=theta*180/%pi ; //glancing angle(degrees)
+
+//Result
+printf("\n glancing angle is %0.0f degrees",theta)