summaryrefslogtreecommitdiff
path: root/3845/CH28/EX28.5/Ex28_5.sce
blob: a80e4a4368a3b94cad363f15c85ac3f677392bf8 (plain)
1
2
3
4
5
6
7
8
//Example 28.5
u=0.825;//Speed at which the galaxy is moving away from the Earth (in terms of c)
lambda_s=0.525;//Wavelength of radio waves (m)
c=1;//Speed of light (in terms of c)
lambda_obs=lambda_s*sqrt((1+u/c)/(1-u/c));//Wavelength detected on the Earth (m)
printf('Wavelength of radio waves detected on the Earth = %0.2f m',lambda_obs)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest