blob: 093ddd0c218c4489ea9c31164a097d48fe661d8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 16.20w
//calculation of the main frequency heard by the person
//given data
us=36*10^3/(60*60)//speed(in m/s) of the person on the scooter
v=340//speed(in m/s) of sound in the air
nu=600//frequency(in Hz) of the siren
//calculation
nudash=(v/(v+us))*nu//main frequency
printf('the main frequency heard by the person is %d Hz',round(nudash))
|