summaryrefslogtreecommitdiff
path: root/2084/CH16/EX16.3w
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.3w
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.3w')
-rwxr-xr-x2084/CH16/EX16.3w/16_3w.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/2084/CH16/EX16.3w/16_3w.sce b/2084/CH16/EX16.3w/16_3w.sce
new file mode 100755
index 000000000..d0e9bdc82
--- /dev/null
+++ b/2084/CH16/EX16.3w/16_3w.sce
@@ -0,0 +1,24 @@
+//developed in windows XP operating system 32bit
+//platform Scilab 5.4.1
+clc;clear;
+//example 16.3w
+//calculation of the frequency,wavelength,speed,maximum and minimum pressures of the sound wave
+
+//given data
+//equation of the sound wave is
+//p = (0.01 N/m^2)*sin((1000 s^-1)*t - (3.0 m^-1)*x)............(1)
+peq=1.0*10^5//equilibrium pressure(in N/m^2) of the air
+
+//calculation
+//comparing equation (1) with standard equation p = p0*sin(w*(t-(x/v)))...we get
+w=1000//value of w(in s^-1)
+nu=w/(2*%pi)//frequency
+v=w/3//velocity
+lambda=v/nu//wavelength
+p0=0.01//pressure amplitude(in N/m^2)
+
+printf('the frequency is %d Hz',nu)
+printf('\nthe wavelength is %3.1f m',lambda)
+printf('\nthe speed of the sound wave is %d m/s',v)
+printf('\nthe maximum pressure amplitude is (%3.2e + %3.2f) N/m^2',peq,p0)
+printf('\nthe minimum pressure amplitude is (%3.2e - %3.2f) N/m^2',peq,p0)