summaryrefslogtreecommitdiff
path: root/3869/CH7/EX7.14/Ex7_14.sce
diff options
context:
space:
mode:
Diffstat (limited to '3869/CH7/EX7.14/Ex7_14.sce')
-rw-r--r--3869/CH7/EX7.14/Ex7_14.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/3869/CH7/EX7.14/Ex7_14.sce b/3869/CH7/EX7.14/Ex7_14.sce
new file mode 100644
index 000000000..2b5467669
--- /dev/null
+++ b/3869/CH7/EX7.14/Ex7_14.sce
@@ -0,0 +1,20 @@
+clear
+//
+//
+//
+
+//Variable declaration
+lamda=97 //wavelength(pm)
+n1=1 //order
+n2=3 //order
+theta1=23*%pi/180 //glancing angle(radian)
+theta2=60*%pi/180 //glancing angle(radian)
+
+//Calculation
+lamda1=n2*lamda*sin(theta1)/(n1*sin(theta2)) //wavelength(pm)
+d=n2*lamda/(2*sin(theta2)) //interplanar spacing(pm)
+
+//Result
+printf("\n wavelength is %0.1f pm",lamda1)
+printf("\n interplanar spacing is %0.0f pm",d)
+printf("\n answer for wavelength given in the book varies due to rounding off errors")