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 /1985/CH7/EX7.5 | |
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 '1985/CH7/EX7.5')
-rwxr-xr-x | 1985/CH7/EX7.5/Chapter7_Example5.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1985/CH7/EX7.5/Chapter7_Example5.sce b/1985/CH7/EX7.5/Chapter7_Example5.sce new file mode 100755 index 000000000..e3583ec13 --- /dev/null +++ b/1985/CH7/EX7.5/Chapter7_Example5.sce @@ -0,0 +1,12 @@ +clc
+clear
+//Input data
+P=1.5//The acoustic power produced by the loudspeaker in J/s
+r=20//Distance in m
+
+//Calculations
+I=(P/(4*3.14*r^2))//Intensity of the sound produced by the loudspeaker in W/m^2
+b=10*log10(I/10^-12)//Intensity level in dB
+
+//Output
+printf('The intensity level at a distance of %i m is %3.1f dB',r,b)
|