summaryrefslogtreecommitdiff
path: root/2084/CH16/EX16.19w/16_19w.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2084/CH16/EX16.19w/16_19w.sce
downloadScilab-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.19w/16_19w.sce')
-rwxr-xr-x2084/CH16/EX16.19w/16_19w.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2084/CH16/EX16.19w/16_19w.sce b/2084/CH16/EX16.19w/16_19w.sce
new file mode 100755
index 000000000..c4ac00cc7
--- /dev/null
+++ b/2084/CH16/EX16.19w/16_19w.sce
@@ -0,0 +1,18 @@
+//developed in windows XP operating system 32bit
+//platform Scilab 5.4.1
+clc;clear;
+//example 16.19w
+//calculation of the frequency of the whistle of the train
+
+//given data
+us=72*10^3/(60*60)//speed(in m/s) of the train 1
+u0=54*10^3/(60*60)//speed(in m/s) of the train 2
+nu=600//frequency(in Hz) of the whistle
+v=340//speed(in m/s)of sound in the air
+
+//calculation
+nudash=((v+u0)/(v-us))*nu//frequency heard by the observer before the meeting of the trains
+nudashdash=((v-u0)/(v+us))*nu//frequency heard by the observer after the crossing of the trains
+
+printf('the frequency heard by the observer before the meeting of the trains is %d Hz',round(nudash))
+printf('\nthe frequency heard by the observer after the crossing of the trains is %d Hz',round(nudashdash))