summaryrefslogtreecommitdiff
path: root/3869/CH2/EX2.21/Ex2_21.sce
blob: 0f5770056b31992c3250b576637ecd6694e2e612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear
//
//
//

//Variable declaration
N=10520                         //grating lines(lines/cm)
theta=90*%pi/180            //angle(radian)
lamda=5*10**-5                  //wavelength of spectral line(cm)

//Calculation
e=1/N
n=e*sin(theta)/lamda     //order

//Result
printf("\n int((n)) orders can be seen")