summaryrefslogtreecommitdiff
path: root/3869/CH2/EX2.20/Ex2_20.sce
diff options
context:
space:
mode:
Diffstat (limited to '3869/CH2/EX2.20/Ex2_20.sce')
-rw-r--r--3869/CH2/EX2.20/Ex2_20.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3869/CH2/EX2.20/Ex2_20.sce b/3869/CH2/EX2.20/Ex2_20.sce
new file mode 100644
index 000000000..cf004ba32
--- /dev/null
+++ b/3869/CH2/EX2.20/Ex2_20.sce
@@ -0,0 +1,15 @@
+clear
+//
+//
+//
+
+//Variable declaration
+n=1 //order
+a=1*10**-6 //slit width(m)
+lamda=600*10**-9 //wavelength of spectral line(m)
+
+//Calculation
+theta=asin(n*lamda/a)*180/%pi //angular separation(degrees)
+
+//Result
+printf("\n angular separation is %0.4f degrees",theta)