summaryrefslogtreecommitdiff
path: root/623/CH1/EX1.1.14/U1_C1_14.sce
blob: 635d16c3fd3cfc83c01dab150a7957fce5826350 (plain)
1
2
3
4
5
6
7
8
9
10
//variable initialization
c=3*10^8;                                 //speed of light (meter/second)
u1=0.6*c;                                 //speed of Beta particle 1 in lab frame (meter/second)
u2=-0.8*c;                                //speed of Beta particle 2 in lab frame (meter/second)
v=u1;                                     //velocity of frame s' where frame s' is attached to the first Beta particle (meter/second)

//velocity of 2nd Beta particle relative to the 1st Beta particle(assuming frame s' is attached to the first Beta particle)
u2_dash=(u2-v)/(1-((u2*v)/c^2));          //velocity of 2nd Beta particle relative to the 1st Beta particle (meter/second)

printf("\n\tThe velocity of 2nd Beta particle relative to the 1st Beta particle = %.2e meter/second",u2_dash);