summaryrefslogtreecommitdiff
path: root/3869/CH1/EX1.31/Ex1_31.sce
blob: d75d558faf1fe182f2707979d523cfdeffdbdffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear
//
//
//

//Variable declaration
D5=0.336*10**-2       //diameter of 5th ring(m)
D15=0.59*10**-2       //diameter of 15th ring(m)
m=10
R=1      //radius of curvature(m)

//Calculation
lamda=((D15**2)-(D5**2))/(4*m*R)     //wavelength of light(m)

//Result
printf("\n wavelength of light is %0.0f  nm",lamda*10**9)