diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1928/CH4/EX4.15.14 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1928/CH4/EX4.15.14')
-rwxr-xr-x | 1928/CH4/EX4.15.14/ex_4_15_14.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/1928/CH4/EX4.15.14/ex_4_15_14.sce b/1928/CH4/EX4.15.14/ex_4_15_14.sce new file mode 100755 index 000000000..f742f5c1c --- /dev/null +++ b/1928/CH4/EX4.15.14/ex_4_15_14.sce @@ -0,0 +1,25 @@ +//Chapter-4,Example4_15_14,pg 4-33
+
+f=50*10^3 //frequency
+
+v1=348 //velocity of ultrasound in atmosphere
+
+v2=1392 //velocity of ultrasound in sea water
+
+t=2 //time difference
+
+//distance is constant hence v1*t1=v2*t2
+
+m=v2/v1 //assuming constant as m
+
+//(t1-t2=d) and (t1=m*t2) therefore
+
+t2=t/(m-1)
+
+d=v2*t2 //distance between two ship
+
+printf("distance between two ships =")
+
+disp(d)
+
+printf("meter")
\ No newline at end of file |