summaryrefslogtreecommitdiff
path: root/3669/CH14/EX14.4/4.sce
blob: 3e8fe22836c15c83c59912cb2448c76197f328ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12

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

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

//Result
printf('wavelength of light is %0.3f   angstrom  \n',int(lamda*10**10))