diff options
Diffstat (limited to '24/CH18/EX18.6/Example18_6.sce')
-rwxr-xr-x | 24/CH18/EX18.6/Example18_6.sce | 15 |
1 files changed, 15 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 |