summaryrefslogtreecommitdiff
path: root/3886/CH14/EX14.11/14_11.sce
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.11/14_11.sce
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-master.tar.gz
Scilab-TBC-Uploads-master.tar.bz2
Scilab-TBC-Uploads-master.zip
Added new codeHEADmaster
Diffstat (limited to '3886/CH14/EX14.11/14_11.sce')
-rw-r--r--3886/CH14/EX14.11/14_11.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/3886/CH14/EX14.11/14_11.sce b/3886/CH14/EX14.11/14_11.sce
new file mode 100644
index 000000000..f902e8589
--- /dev/null
+++ b/3886/CH14/EX14.11/14_11.sce
@@ -0,0 +1,23 @@
+//railway carriage
+//refer fig. 14.20
+//Velocity of components of train are
+v1x=96 //kmph
+v1y=0
+//Velocity components of bullet are
+//v2x=0.9848*v
+//v2y=0.1736*v
+//Component of relative velocity of B w.r.t. A are
+//vrx=0.9848*v-96
+//vry=0.1736*v
+//Direction of relative velocity alpha with x-axis
+//tand(alpha)=((vry)/(vrx))
+//thus
+v=183.96 //kmph
+//consider motion in y direction
+vry=0.1736*51.1 //m/sec
+//Time period (t)
+t=(1.8)/(0.1736*51.1) //sec
+printf("\nv=%.2f kmph\nt=%.3f sec",v,t)
+
+
+