summaryrefslogtreecommitdiff
path: root/2084/CH16/EX16.11w/16_11w.sce
blob: fe6495771d1b2d7e6cd30d4eb1b2812a104ee746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 16.11w
//calculation of the minimum distance between the source and the detector for maximum sound detection

//given data
nu=180//frequency(in Hz)
d=2//distance(in m)
v=360//speed(in m/s) of the sound wave in air

//calculation
//path difference.....delta = (2*((2^2) + (x^2/4))^(1/2)) - (x)
lambda=v/nu//wavelength
delta=lambda
//solving the above equation,we get
x=4-1

printf('the minimum distance between the source and the detector for maximum sound detection is %d m',x)