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

//Variable declaration
n=2                             //order
N=4250                          //grating lines(lines/cm)
theta=30*%pi/180            //angle(radian)

//Calculation
e=1/N
lamda=e*sin(theta)*10**8/n       //wavelength of spectral line(angstrom)

//Result
printf("\n wavelength of spectral line is %0.0f  angstrom",lamda)