summaryrefslogtreecommitdiff
path: root/1535/CH3/EX3.1/Ch03Ex1.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1535/CH3/EX3.1/Ch03Ex1.sci
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 '1535/CH3/EX3.1/Ch03Ex1.sci')
-rwxr-xr-x1535/CH3/EX3.1/Ch03Ex1.sci10
1 files changed, 10 insertions, 0 deletions
diff --git a/1535/CH3/EX3.1/Ch03Ex1.sci b/1535/CH3/EX3.1/Ch03Ex1.sci
new file mode 100755
index 000000000..c10eeaff9
--- /dev/null
+++ b/1535/CH3/EX3.1/Ch03Ex1.sci
@@ -0,0 +1,10 @@
+// Scilab Code Ex3.1 : Page-71 (2010)
+beta = 0.51e-02; // Fringe width, cm
+d = 2.2e-02; // Distance between the slits, cm
+D = 2e+02; // Distance between the slits and the screen, cm
+// As beta = D*lambda/d, solving for lambda
+lambda = beta*d/D; // Wavelength of light, m
+printf("\nThe wavelength of light = %4d angstrom", lambda/1e-010);
+
+// Result
+// The wavelength of light = 5610 angstrom \ No newline at end of file