summaryrefslogtreecommitdiff
path: root/3886/CH14/EX14.8/14_8.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.8/14_8.sce
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.8/14_8.sce')
-rw-r--r--3886/CH14/EX14.8/14_8.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/3886/CH14/EX14.8/14_8.sce b/3886/CH14/EX14.8/14_8.sce
new file mode 100644
index 000000000..2d76b882b
--- /dev/null
+++ b/3886/CH14/EX14.8/14_8.sce
@@ -0,0 +1,31 @@
+//ship B approaching port
+//refer fig. 14.15 and 14.16
+//Considering west as x-axis and south as y-axis
+vAx=24*cosd(30)
+vAy=24*sind(30)
+vBx=-18
+vBy=0
+//Let relative velocity of A w.r.t. B be vr at an angle alpha to western direction
+vrx=vAx-vBx //kmph
+vry=vAy-vBy
+v=sqrt((vrx)^2+(vry)^2) //kmph
+alpha=atand(vry/vrx) //degree
+//Holding B stationary and allowing A to move with relative velovity,BC is given by
+BC=60*sind(alpha) //km
+//from triangle BCD
+DC=sqrt((25^2)+(17.735)^2) //km
+CE=DC //km
+AC=60*cosd(alpha) //km
+AD=AC-DC //km
+AE=AC+CE //km
+//Time taken to reach D
+t1=39699*60/40899 //min
+//time taken to reach E
+t2=74939*60/40599 //min
+printf("\nThe two ships can start exchanging signals %.2f min after ship A leaves the port and continue to do so for %.2f min",t1,t2-t1)
+
+
+
+
+
+