summaryrefslogtreecommitdiff
path: root/3886/CH14/EX14.3
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3886/CH14/EX14.3
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.gz
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.bz2
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.zip
Added new codeHEADmaster
Diffstat (limited to '3886/CH14/EX14.3')
-rw-r--r--3886/CH14/EX14.3/14_3.sce8
-rw-r--r--3886/CH14/EX14.3/14_3.txt5
2 files changed, 13 insertions, 0 deletions
diff --git a/3886/CH14/EX14.3/14_3.sce b/3886/CH14/EX14.3/14_3.sce
new file mode 100644
index 000000000..125117821
--- /dev/null
+++ b/3886/CH14/EX14.3/14_3.sce
@@ -0,0 +1,8 @@
+//Two trains
+//Taking the direction of motion of train A as positive
+//let velocity of A be v m/sec
+//Relative velocity=1.5*v
+vA=20*((60*60)/(1000)) //kmph
+//velocity of B
+vB=-10*((60*60)/(1000)) //kmph
+printf("\nVelocity of A=%.2f kmph\nVelocity of B=%.2f kmph",vA,-vB)
diff --git a/3886/CH14/EX14.3/14_3.txt b/3886/CH14/EX14.3/14_3.txt
new file mode 100644
index 000000000..fbdc6bc01
--- /dev/null
+++ b/3886/CH14/EX14.3/14_3.txt
@@ -0,0 +1,5 @@
+
+--> exec('E:\My program EM\14.Relative velocity\14.3.sce', -1)
+
+Velocity of A=72.00 kmph
+Velocity of B=36.00 kmph \ No newline at end of file