blob: a3e832a4f83229361c3527ef409dc7d7854f7e1f (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Scilab Code Ex3d.6: Page-207 (2008)
clc; clear;
n = 2; // Order of diffraction
lambda = 5e-005; // Wavelength of light, cm
theta = 30; // Angle of diffraction, degree
N = sind(theta)/(n*lambda); // Number of lines per cm of grating, lines/cm
printf("\nThe number of lines per cm of grating = %4d per cm", ceil(N));
// Result
// The number of lines per cm of grating = 5000 per cm
|