blob: 481d3736805f7f313b70c9c68c8f2c4679112f70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Scilab Code Ex3.24: : Page-3.46 (2009)
clc; clear;
lambda1 = 5890e-008; // Wavelength of D1 line, cm
lambda2 = 5896e-008; // Wavelength of D2 line, cm
N = 15000; // No. of lines per inch of grating, lines/inch
a_plus_b = 2.54/N; // Grating element, cm
n = 2; // Order of diffraction for secondary maxima
// As (a+b)*sin(theta_n) = n*lambda, solving for theta1 and theta2
theta1 = asind(n*lambda1/a_plus_b); // Direction of secondary maxima with lambda1, degrees
theta2 = asind(n*lambda2/a_plus_b); // Direction of secondary maxima with lambda2, degrees
printf("\nThe angle of separation in second order diffraction spectrum = %3.1f degrees", theta2-theta1);
// Result
// The angle of separation in second order diffraction spectrum = 0.1 degrees
|