summaryrefslogtreecommitdiff
path: root/2084/CH16/EX16.15w
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2084/CH16/EX16.15w
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2084/CH16/EX16.15w')
-rwxr-xr-x2084/CH16/EX16.15w/16_15w.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2084/CH16/EX16.15w/16_15w.sce b/2084/CH16/EX16.15w/16_15w.sce
new file mode 100755
index 000000000..b43b5af5f
--- /dev/null
+++ b/2084/CH16/EX16.15w/16_15w.sce
@@ -0,0 +1,16 @@
+//developed in windows XP operating system 32bit
+//platform Scilab 5.4.1
+clc;clear;
+//example 16.15w
+//calculation of the fundamental frequency if the air is replaced by hydrogen
+
+//given data
+nu0=500//fundamental frequency(in Hz)
+rhoa=1.20//density(in kg/m^3) of air
+rhoh=0.089//density(in kg/m^3) of hydrogen
+
+//calculation
+//fundamental frequency of an organ pipe is proportional to the speed of the sound
+nu=nu0*sqrt(rhoa/rhoh)
+
+printf('the fundamental frequency if the air is replaced by hydrogen is %d Hz',nu)