summaryrefslogtreecommitdiff
path: root/24/CH18/EX18.6/Example18_6.sce
blob: 909e5a79d93dc5728c949fa4f7efdf726935bd57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)