diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2084/CH16/EX16.22w/16_22w.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2084/CH16/EX16.22w/16_22w.sce')
-rwxr-xr-x | 2084/CH16/EX16.22w/16_22w.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/2084/CH16/EX16.22w/16_22w.sce b/2084/CH16/EX16.22w/16_22w.sce new file mode 100755 index 000000000..4e6ce7781 --- /dev/null +++ b/2084/CH16/EX16.22w/16_22w.sce @@ -0,0 +1,18 @@ +//developed in windows XP operating system 32bit
+//platform Scilab 5.4.1
+clc;clear;
+//example 16.22w
+//calculation of the speed of the car
+
+//given data
+nudash=440//frequency(in Hz) emitted by the wall
+nudashdash=480//frequency(in Hz) heard by the car driver
+v=330//speed(in m/s) of the sound in the air
+
+//calculation
+//frequency received by the wall..............nudash = (v/(v-u))*nu............(1)
+//frequency(in Hz) heard by the car driver....nudashdash = ((v+u)/v)*nudash....(2)
+//from above two equations,we get
+u=((nudashdash-nudash)/(nudashdash+nudash))*v//speed of the car
+
+printf('the speed of the car is %3.1f m/s or %d km/h',u,round(u*10^-3*60*60))
|