summaryrefslogtreecommitdiff
path: root/446/CH2/EX2.7/2_7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /446/CH2/EX2.7/2_7.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 '446/CH2/EX2.7/2_7.sce')
-rwxr-xr-x446/CH2/EX2.7/2_7.sce6
1 files changed, 6 insertions, 0 deletions
diff --git a/446/CH2/EX2.7/2_7.sce b/446/CH2/EX2.7/2_7.sce
new file mode 100755
index 000000000..b197d1362
--- /dev/null
+++ b/446/CH2/EX2.7/2_7.sce
@@ -0,0 +1,6 @@
+clear
+clc
+disp('Exa-2.7');
+v1=0.6; u=0.8; c=1; // all the values are measured in terms of c hence c=1
+v= (v1+u)/(1+(v1*u/c^2));
+printf('The speed of missile as measured by an observer on earth is %.2f c.',v); \ No newline at end of file