summaryrefslogtreecommitdiff
path: root/1985/CH4/EX4.5/Chapter4_Example5.sce
blob: 599666d660086955b2cd98db55447aaf15cc8836 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
clear
//Input data
N=(5.9*10^5)//Number of lines drawn on the grating in lines/m
n=2//Order of diffraction
l=(6000*10^-10)//Wavelength of light used in m

//Calculations
q=asind(N*n*l)//Angle of diffraction in degrees
cosq=cosd(q)//Cosine of angle of diffraction
P=((n*N)/cosq)/10^6//Dispersive power* 10^6

//Output
printf('The dispersive power of the grating in the second order is %3.2f *10^6',P )