summaryrefslogtreecommitdiff
path: root/3886/CH14/EX14.6/14_6.sce
blob: fed361c26049e09d89a5a6bb1a118d37967ce9a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Motor boat crossing river
//refer fig. 14.11 and 14.12
//let the motor boat start from A and reaches C
vrx=15  //kmph
//distance to be moved in x direction=1 km
//time required t is
t=4  //min
//boat will move down the stream
vy=5  //kmph
//Distance moved in downstream direction (d)
d=333.33  //m
//Let the direction of boat be set at theta to x-direction
theta=asind(1/3)  //degree
printf("The boat should be set in the direction theta=%.2f degree and time required is t=%.2f min\nDistance moved in downstream direction=%.2f m",theta,t,d)