summaryrefslogtreecommitdiff
path: root/1862/CH20/EX20.2/C20P2.sce
blob: 0a7875f17669199b2612b22ba09f7936e08632af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clear
clc
//to find speed of missile measured by observer on the Earth

//Given:
//refer to figure 20-9 from page no. 457
//speed of spaceship
u = 0.80// times c
//speed of missile
v0 = 0.60//times c


//Solution:
//appiying formule for relativistic addition of velocities
//speed of missile measured by observer on Earth
v = (v0+u)/(1+(v0*u))//times c

printf ("\n\n Speed of missile measured by observer on the Earth v = \n\n %.2fc" ,v);