blob: 74427d0552101516e37a9910a8db7a8d38662f5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//A golf ball
h0=10 //m
//u1=sqrt(2*g*h0)
u2=0
v2=0
//defination of coefficient of restitution gives
//v1=%e*sqrt(2*g*h0) in upward direction
//From kinematic equation
h1=10*0.894^2 //m
//After second bounce
h2=6.388 //m
//After third bounce
h3=5.105 //m
printf("\nh1=%.3f m\nAfter second bounce h2=%.3f m\nAfter third bounce h3=%.3f m",h1,h2,h3)
|