summaryrefslogtreecommitdiff
path: root/3886/CH14/EX14.9/14_9.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.9/14_9.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.9/14_9.sce')
-rw-r--r--3886/CH14/EX14.9/14_9.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3886/CH14/EX14.9/14_9.sce b/3886/CH14/EX14.9/14_9.sce
new file mode 100644
index 000000000..58ff6af69
--- /dev/null
+++ b/3886/CH14/EX14.9/14_9.sce
@@ -0,0 +1,18 @@
+//passenger observing rain drops
+//refer fig. 14.17
+//Let the true velocity of rain be v kmph at a true angle theta with vertical
+//Taking the direction of train as x and that of vertical downward as y
+//Velocity components of train are
+//v1x=v*sind(theta)
+//v1y=v*cosd(theta)
+//when the velocity of train was 36 kmph
+v2x=36
+v2y=0
+//alpha is the direction of relative velocity and is given as 30 degree and when the velocity of train is 54 kmph alpha=45 degree thus
+//v*cosd(theta)=v*sind(theta)-54
+//v*sind(theta)=-11.402
+//solving we get
+v=sqrt(4407.43) //kmph
+theta=asind(-(11.402)/(66.388))
+printf("\nv=%.3f kmph\ntheta=%.2f degree",v,theta)
+