summaryrefslogtreecommitdiff
path: root/3869/CH7/EX7.19/Ex7_19.sce
diff options
context:
space:
mode:
Diffstat (limited to '3869/CH7/EX7.19/Ex7_19.sce')
-rw-r--r--3869/CH7/EX7.19/Ex7_19.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3869/CH7/EX7.19/Ex7_19.sce b/3869/CH7/EX7.19/Ex7_19.sce
new file mode 100644
index 000000000..bf2bde768
--- /dev/null
+++ b/3869/CH7/EX7.19/Ex7_19.sce
@@ -0,0 +1,16 @@
+clear
+//
+//
+//
+
+//Variable declaration
+d=3.04*10**-10 //lattice spacing(m)
+lamda=0.79*10**-10 //wavelength(m)
+n=3 //order
+
+//Calculation
+x=n*lamda/(2*d)
+theta=asin(x)*180/%pi //glancing angle(degrees)
+
+//Result
+printf("\n glancing angle is %0.3f degrees",theta)