summaryrefslogtreecommitdiff
path: root/3753/CH7/EX7.9/Ex7_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '3753/CH7/EX7.9/Ex7_9.sce')
-rw-r--r--3753/CH7/EX7.9/Ex7_9.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3753/CH7/EX7.9/Ex7_9.sce b/3753/CH7/EX7.9/Ex7_9.sce
new file mode 100644
index 000000000..f5bd39fb6
--- /dev/null
+++ b/3753/CH7/EX7.9/Ex7_9.sce
@@ -0,0 +1,14 @@
+//Example number 7.9, Page number 7.16
+
+clc;clear;close
+
+// Variable declaration
+d=1.18 // in m
+theta=90*%pi/180 // in radian
+lamda=1.540 // in m
+
+// Calculations
+n=(2*d*sin(theta))/lamda // unitless
+
+// Result
+printf("n = %0.2f",n)