From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2084/CH16/EX16.15w/16_15w.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 2084/CH16/EX16.15w/16_15w.sce (limited to '2084/CH16/EX16.15w') 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) -- cgit