summaryrefslogtreecommitdiff
path: root/1985/CH4/EX4.6/Chapter4_Example6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1985/CH4/EX4.6/Chapter4_Example6.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1985/CH4/EX4.6/Chapter4_Example6.sce')
-rwxr-xr-x1985/CH4/EX4.6/Chapter4_Example6.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1985/CH4/EX4.6/Chapter4_Example6.sce b/1985/CH4/EX4.6/Chapter4_Example6.sce
new file mode 100755
index 000000000..ef5e470f4
--- /dev/null
+++ b/1985/CH4/EX4.6/Chapter4_Example6.sce
@@ -0,0 +1,13 @@
+clc
+clear
+//Input data
+N=14438//Number of lines per inch
+n=3//Order of diffraction
+w=(4200*10^-10)//Wavelength of light used in m
+
+//Calculations
+x=(N/2.54)*100//Number of lines per m
+dq=((n*x*10^-10)/sqrt(1-(x^2*n^2*w^2)))*(180/3.14)//Angular seperation in degrees. In textbook, it is given wrong as 0.14 degrees
+
+//Output
+printf('The angular seperation is %3.3f degrees',dq)