Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A ball is thrown horizontally at 15 m/s from a roof that is 20 m high. Use . The horizontal distance is and the height is . Find the time to reach the ground and the horizontal distance of the landing point. Then print and for five equally spaced times from 0 to the landing time.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Plan. The ball lands when , so . Then linspace gives five times from 0 to that moment, and the formulas work on the whole array.
Check. s. The landing distance is m. The last row of the table must show , and it does. Halfway, at s, the ball is at m, and the height is m, so it has fallen only a quarter of the height in half of the time.
Answer: it lands after 2.02 s, 30.3 m from the wall.
Log in to join the discussion.
Loading…