blob: e44cee94a3e80ff2c46a97880c599ecbc9250e6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Scilab Code Ex4.7 : Page-93 (2010)
w = 5; // Width of the grating, cm
N = 320; // Number of lines per cm on grating, per cm
N0 = w*N; // Total number of lines on the grating
lambda = 640; // Wavelength of light, nm
n = 2; // Order of diffraction
d_lambda = lambda/(n*N0); // Separation between wavelengths which the gratign can just resolve, nm
printf("\nThe separation between wavelengths which the grating can just resolve = %3.1f nm", d_lambda);
// Result
// The separation between wavelengths which the grating can just resolve = 0.2 nm
|