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

//Variable declaration
lamda=5890*10**-5      //wavelength(cm)
dlamda=6*10**-5        //difference in wavelength(cm)
k=2                    //order
w=2.5                  //width(cm)

//Calculation
N=lamda/(k*dlamda*w)   //minimum number of lines per cm

//Result
printf("\n minimum number of lines per cm is %0.2f  ",N)
printf("\n answer given in the book varies due to rounding off errors")