summaryrefslogtreecommitdiff
path: root/1271/CH8/EX8.1/example8_1.sce
blob: f530dc27a2141bd1df660b786a19c0a948f8e585 (plain)
1
2
3
4
5
6
7
8
9
10
11
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)