summaryrefslogtreecommitdiff
path: root/1847/CH3/EX3.13/Ch03Ex13.sce
blob: eadfaeb18b46f49ea90b867ced1f4863e85d5544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Scilab Code Ex3.13:: Page-3.25 (2009)
clc; clear;
a = 0.045;       // Slit width, cm
lambda = 5500e-008;     // Wavelength of light used, cm
f = 250;        // Focal length of the lens, cm
x = lambda*f/a;     // Position of central maxima, cm

printf("\nThe position of central maxima = %5.3f cm", x);
printf("\nThe width of central maxima from first minima = %5.3f cm", 2*x);

// Result 
// The position of central maxima = 0.306 cm
// The width of central maxima from first minima = 0.611 cm