diff options
Diffstat (limited to '1535/CH3/EX3.1/Ch03Ex1.sci')
-rwxr-xr-x | 1535/CH3/EX3.1/Ch03Ex1.sci | 10 |
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 |