A ball is dropped vertically from a height d above the ground. It hits the ground and bounces up vertically to a height $d/2$. Neglecting subsequent motion and air resistance, its velocity v varies with the height h above the ground as