blob: caabd24d6a8e2d07db606e524c8514607f43d2d6 (
plain)
1
2
3
4
5
6
7
8
9
|
//Example 28.3
v=0.5;//Speed of spaceship (in terms of c)
u_1=1;//Speed of the signal as observed from spaceship (in terms of c)
c=1;//Speed of light (in terms of c)
u=(v+u_1)/(1+v*u_1/c^2);//Speed at which the signal approaches the Earth (in terms of c)
printf('Speed at which the signal approaches the Earth = %0.1fc',u)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest
|