summaryrefslogtreecommitdiff
path: root/2411/CH3/EX3.c.203/Ex3c_3.sce
blob: bdd709d420fc138259fab2f658ae692a94c830e6 (plain)
1
2
3
4
5
6
7
8
9
10
// Scilab Code Ex3c.3: Page-184 (2008)
clc; clear;
d = 0.1;    // Separation between the two slits, cm
D = 100;    // Distance between the source and the slit, cm
bita = 0.05;    // Fringe width, cm
lambda = bita*d/D;    // Wavelength of light, cm
printf("\nThe wavelength of light used = %4d angstrom", lambda/1e-008);

// Result
// The wavelength of light used = 5000 angstrom