blob: 46a4fd799fdb5a65750473ea2613c2ae2c55a356 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 16.18w
//calculation of the apparent frequency
//given data
us=36*10^3/(60*60)//speed(in m/s)of the car
v=340//speed(in m/s) of the sound in the air
nu=500//frequency(in Hz)
//calculation
nudash=(v/(v+us))*nu//apparent frequency heard by the observer
nudashdash=(v/(v-us))*nu//frequency received by the wall
printf('the apparent frequency heard by the ground observer is %d Hz',round(nudash))
printf('\nthe frequency of the reflected wave as heard by the ground observer is %d Hz',nudashdash)
|