summaryrefslogtreecommitdiff
path: root/3886/CH17/EX17.14/17_14.sce
blob: 0c1e94235df4b77a996acec9ddf43bf3ad28f11f (plain)
1
2
3
4
5
6
7
8
9
10
11
//car and lorry
//refer fig. 17.13 (a) and (b)
//Let the velocity of vehicle after collision be vx in x direction and vy in y direction
vx=18  //kmph
//applying impulse momentum equation in y-direction
vy=12  //kmph
//Resultant velocity
v=sqrt((vx^2)+(vy^2))  //kmph
//its inclination to main road
theta=atand(vy/vx)  //degree
printf("\nv=%.3f kmph\ntheta=%.3f degree",v,theta)