summaryrefslogtreecommitdiff
path: root/3886/CH14/EX14.9/14_9.sce
blob: 58ff6af69240d2cfbd369cdd985df06178cbec9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//passenger observing rain drops
//refer fig. 14.17 
//Let the true velocity of rain be v kmph at a true angle theta with vertical
//Taking the direction of train as x and that of vertical downward as y
//Velocity components of train are
//v1x=v*sind(theta)
//v1y=v*cosd(theta)
//when the velocity of train was 36 kmph
v2x=36
v2y=0
//alpha is the direction of relative velocity and is given as 30 degree and when the velocity of train is 54 kmph alpha=45 degree thus
//v*cosd(theta)=v*sind(theta)-54
//v*sind(theta)=-11.402
//solving we get
v=sqrt(4407.43)  //kmph
theta=asind(-(11.402)/(66.388))
printf("\nv=%.3f kmph\ntheta=%.2f degree",v,theta)