From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2084/CH16/EX16.21w/16_21w.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 2084/CH16/EX16.21w/16_21w.sce (limited to '2084/CH16/EX16.21w') diff --git a/2084/CH16/EX16.21w/16_21w.sce b/2084/CH16/EX16.21w/16_21w.sce new file mode 100755 index 000000000..c1c9d30a7 --- /dev/null +++ b/2084/CH16/EX16.21w/16_21w.sce @@ -0,0 +1,16 @@ +//developed in windows XP operating system 32bit +//platform Scilab 5.4.1 +clc;clear; +//example 16.21w +//calculation of the original frequency of the source + +//given data +u0=10//speed(in m/s) of the observer going away from the source +us=10//speed(in m/s) of the source going away from observer +nudash=1950//frequency(in Hz) of the sound detected by the detector +v=340//speed(in m/s) of the sound in the air + +//calculation +nu=((v+us)/(v-u0))*nudash//original frequency + +printf('the original frequency of the source is %d Hz',round(nu)) -- cgit