summaryrefslogtreecommitdiff
path: root/2780/CH1/EX1.14/Ex1_14.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2780/CH1/EX1.14/Ex1_14.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2780/CH1/EX1.14/Ex1_14.sce')
-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")