summaryrefslogtreecommitdiff
path: root/1301/CH16/EX16.17/ex16_17.sce
blob: af86bacc258c9a746f97b5da4d7694f949669d8c (plain)
1
2
3
4
5
6
clc;
v=343;     //velocity in m/sec
fs=800;    //original frquency
f1=750;   //percieved frquency
vs=v*(1-(fs/f1)); //calculating velocity
disp(vs,"Trains velocity in m/sec = ");   //diplaying result