summaryrefslogtreecommitdiff
path: root/3869/CH2/EX2.5
diff options
context:
space:
mode:
Diffstat (limited to '3869/CH2/EX2.5')
-rw-r--r--3869/CH2/EX2.5/Ex2_5.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3869/CH2/EX2.5/Ex2_5.sce b/3869/CH2/EX2.5/Ex2_5.sce
new file mode 100644
index 000000000..f0f58e016
--- /dev/null
+++ b/3869/CH2/EX2.5/Ex2_5.sce
@@ -0,0 +1,19 @@
+clear
+//
+//
+//
+
+//Variable declaration
+lamda1=5016*10**-8 //wavelength(cm)
+lamda2=5048*10**-8 //difference in wavelength(cm)
+k=2 //order
+n=15000 //number of lines/inch
+
+//Calculation
+e=2.54/n
+theta1=asin(2*lamda1/e)*180/%pi //angle for 1st wavelength(degrees)
+theta2=asin(2*lamda2/e)*180/%pi //angle for 2nd wavelength(degrees)
+theta=int(60*(theta2-theta1)) //angle of separation(minutes)
+
+//Result
+printf("\n angle of separation is %0.3f minutes",theta)