summaryrefslogtreecommitdiff
path: root/2780/CH1/EX1.14
diff options
context:
space:
mode:
Diffstat (limited to '2780/CH1/EX1.14')
-rwxr-xr-x2780/CH1/EX1.14/Ex1_14.sce16
1 files changed, 16 insertions, 0 deletions
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")