summaryrefslogtreecommitdiff
path: root/3875/CH5/EX5.7/Ex5_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '3875/CH5/EX5.7/Ex5_7.sce')
-rw-r--r--3875/CH5/EX5.7/Ex5_7.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3875/CH5/EX5.7/Ex5_7.sce b/3875/CH5/EX5.7/Ex5_7.sce
new file mode 100644
index 000000000..bd2ab706f
--- /dev/null
+++ b/3875/CH5/EX5.7/Ex5_7.sce
@@ -0,0 +1,12 @@
+clc;
+clear;
+lambda=6000*10^-8 //wavelength in cm
+N=5000 //lines per cm
+k=3
+e=1/5000 //in cm
+sin_theta=1 //angle in radian
+
+//calculation
+k=(e*sin_theta)/lambda
+
+printf("The highest order of spectrum that can be seen is %d",k)