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.17 | |
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.17')
-rwxr-xr-x | 1928/CH4/EX4.15.17/ex_4_15_17.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/1928/CH4/EX4.15.17/ex_4_15_17.sce b/1928/CH4/EX4.15.17/ex_4_15_17.sce new file mode 100755 index 000000000..b2771bb75 --- /dev/null +++ b/1928/CH4/EX4.15.17/ex_4_15_17.sce @@ -0,0 +1,27 @@ +//Chapter-4,Example4_15_17,pg 4-35
+
+S=29 //salinity
+
+t=2 //time
+
+l=0.01 //wavelength
+
+T=30 //temperature
+
+v=1510+1.14*S+4.21*T-0.037*T^2 //velocity of ultrasound in sea
+
+d=v*t/2 //depth of sea bed
+
+printf("1)depth of sea bed =")
+
+disp(d)
+
+printf("meter")
+
+f=v/l //frequency
+
+printf("2) frequency =")
+
+disp(f)
+
+printf("Hz")
|