diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2780/CH1/EX1.14/Ex1_14.sce | |
download | Scilab-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-x | 2780/CH1/EX1.14/Ex1_14.sce | 16 |
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")
|