From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2780/CH1/EX1.14/Ex1_14.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 2780/CH1/EX1.14/Ex1_14.sce (limited to '2780/CH1/EX1.14/Ex1_14.sce') diff --git a/2780/CH1/EX1.14/Ex1_14.sce b/2780/CH1/EX1.14/Ex1_14.sce new file mode 100755 index 000000000..d6a7a1795 --- /dev/null +++ b/2780/CH1/EX1.14/Ex1_14.sce @@ -0,0 +1,16 @@ +clc +//to calculate velocity in the laboratory frame +c=3*10^8 //light speed (m/s) +v=0.8*c //velocity relative to laboratory along positive direction of x-axis +//given that u'=3 i+4 j+12 k (m/s) +ux1=3 //in (m/s) +uy1=4 //in (m/s) +uz1=12 //in (m/s) +ux=(ux1+v)/(1+v*ux1/c^2) +uy=(uy1*sqrt(1-(v/c)^2))/(1+v*ux1/c^2) +uz=(uz1*sqrt(1-(v/c)^2))/(1+v*ux1/c^2) +disp("u=ux i+uy j+uz k") +disp("where") +disp("ux="+string(ux)+"m/s") +disp("uy="+string(uy)+"m/s") +disp("uz="+string(uz)+"m/s") -- cgit