summaryrefslogtreecommitdiff
path: root/3769/CH17/EX17.3/Ex17_3.sce
blob: 8ba7875b6f3cb097b7a2062fa04c94ef511ca3b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear
//Given
c=3.0*10**8
u=1.5
f=6*10**14                      //Hz

//Calculation
v=c/u
l=c/f
lm=v/f

//Result
printf("\n (i) Wavelength of light in air is %0.3f  m", l)
printf("\n (ii) Wavelength of light in glass is %0.1f *10**-7 m",lm*10**7)