summaryrefslogtreecommitdiff
path: root/24/CH18/EX18.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /24/CH18/EX18.6
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 '24/CH18/EX18.6')
-rwxr-xr-x24/CH18/EX18.6/Example18_6.sce15
-rwxr-xr-x24/CH18/EX18.6/Example18_6_result.txt5
2 files changed, 20 insertions, 0 deletions
diff --git a/24/CH18/EX18.6/Example18_6.sce b/24/CH18/EX18.6/Example18_6.sce
new file mode 100755
index 000000000..909e5a79d
--- /dev/null
+++ b/24/CH18/EX18.6/Example18_6.sce
@@ -0,0 +1,15 @@
+//Given that
+L = 67*10^-2 //in cm
+Vs = 343 //in m/s
+
+//Sample Problem 18-6a
+printf("**Sample Problem 18-6a**\n")
+//Open Ends
+f = Vs/(2*L)
+printf("The frequency of sound in case of open end is %fHz\n", f)
+
+//Sample Problem 18-6b
+printf("\n**Sample Problem 18-6b**\n")
+//cloes end
+fo = Vs/(4*L)
+printf("The frequency of sound in case of open ends is %fHz", fo) \ No newline at end of file
diff --git a/24/CH18/EX18.6/Example18_6_result.txt b/24/CH18/EX18.6/Example18_6_result.txt
new file mode 100755
index 000000000..00fbc8e6d
--- /dev/null
+++ b/24/CH18/EX18.6/Example18_6_result.txt
@@ -0,0 +1,5 @@
+**Sample Problem 18-6a**
+The frequency of sound in case of open end is 255.970149Hz
+
+**Sample Problem 18-6b**
+The frequency of sound in case of open ends is 127.985075Hz \ No newline at end of file