summaryrefslogtreecommitdiff
path: root/1271/CH8/EX8.1/example8_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1271/CH8/EX8.1/example8_1.sce
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 '1271/CH8/EX8.1/example8_1.sce')
-rwxr-xr-x1271/CH8/EX8.1/example8_1.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1271/CH8/EX8.1/example8_1.sce b/1271/CH8/EX8.1/example8_1.sce
new file mode 100755
index 000000000..f530dc27a
--- /dev/null
+++ b/1271/CH8/EX8.1/example8_1.sce
@@ -0,0 +1,12 @@
+clc
+// Given that
+v = 34500 // speed of sound in cm/sec
+f = 20 // lower limit of frequency for human hearing ear in Hz
+f_ = 20000 // upper limit of frequency for human hearing ear in Hz
+// Sample Problem 1 on page no. 8.17
+printf("\n # PROBLEM 1 # \n")
+printf(" Standard formula used \n")
+printf(" V = f*lambda \n \n" )
+lambda = v / f
+lambda_ = v / f_
+printf("\n Wavelength range of the sound wave is %f cm to %f cm.",lambda_,lambda)