summaryrefslogtreecommitdiff
path: root/3756/CH2/EX2.18/Ex2_18.sce
blob: ec33f00ca1281a71a16629ad8b8d4e84fbcfa759 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc
//
//
//

//Variable declaration
lambdaa=5890              //Wavelength
dlambdaa=6                //Difference in wavelengths
n=2                       //order

//Calculations
N=((lambdaa)/(n*dlambdaa))

//Result
printf("\n  The Minimum number of lines in the grating are %3.0f ",N)