summaryrefslogtreecommitdiff
path: root/1172/CH1/EX1.21/Example1_21.sce
blob: 04abe75c049dc0dad6c54cbad6b37d9376797976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
//GivenS
lambda=6.2e-5// wavelength of monochromatic light in cm
grating_element= 1/5000// lines per centimeter
theta=90// angle of second order spectral line in degree 

//Sample Problem 21 Page No. 55
printf("\n # Problem 21 # \n")
printf(" \n Standard formula used \n   n*lambda= (a+b)*sin(theta)  \n")
n=grating_element/lambda
printf(" Maximum order n = %d may be seen in between the given wavelength spectrum.\n ",n)