A Ball off a Roof Lands
Q. A ball is thrown straight up at 20 m/sm/s from the top of a building 25 mm tall. Taking g as 10 m/s²m/s², how many seconds pass before it hits the groundm?
Inputs
Outputs
time?
How it's solved
Solved with UniformAcceleration
Given
- m/s
- m
- m/s²
- m from “hits the ground”
- from “thrown straight up” and “Taking g as”
Find .
Working
- thrown straight up and Taking g as
- m/s²
- position after a time(flying)
Conclusion
There is no need to split the flight at the top: the acceleration never changes, so one equation covers the way up and the way down. It has two roots, and only the one after the throw is an answer.
The web of concepts
given read from the words equation asked
The Ruby that solves it
The question and its solution are small Ruby files. The engine runs them.
1require_relative "../physics"23question :a_ball_off_a_roof_lands do4 kind :numerical5 describes "A ball is thrown straight up at %{throw_speed} from the top of a building %{building_height} tall. Taking g as " \6 "%{gravity}, %{time}?"7 given throw_speed: "20 m/s"8 given building_height: "25 m"9 given gravity: "10 m/s2"10 asks time: "how many seconds pass before it hits the ground"11end1require_relative "../questions/a_ball_off_a_roof_lands"2require_relative "../science/motion_in_a_straight_line/uniform_acceleration"34solve :a_ball_off_a_roof_lands, using: UniformAcceleration do5 objects :ball6 ball.goes(:flying)78 deduce_from "thrown straight up", "Taking g as", ball.acceleration => -g9 take throw_speed: ball.initial_velocity, building_height: ball.initial_position, gravity: g10 deduce_from "hits the ground", ball.final_position => "0 m"11 take time: flying.time_taken12 answer find_value(:time, in: "s")1314 conclusion "There is no need to split the flight at the top: the acceleration never changes, so " \15 "one equation covers the way up and the way down. It has two roots, and only the one " \16 "after the throw is an answer."17endplayground.rb
1require_relative "../solutions/a_ball_off_a_roof_lands"23play_with :a_ball_off_a_roof_lands do4 title "A Ball off a Roof Lands"5endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| position | m | — | Velocity | |
| displacement | m | — | Velocity | |
| path length | m | — | Velocity | |
| time taken | s | 0 … 1e+05 | Velocity | |
| average velocity | m/s | — | Velocity | |
| average speed | m/s | — | Velocity | |
| starting position | m | — | Velocity | |
| final position | m | — | Velocity | |
| velocity | m/s | — | Acceleration | |
| change of velocity | m/s | — | Acceleration | |
| average acceleration | m/s² | — | Acceleration | |
| starting velocity | m/s | — | Acceleration | |
| final velocity | m/s | — | Acceleration | |
| acceleration | m/s² | — | UniformAcceleration | |
| gravity | m/s² | — | UniformAcceleration | |
| time | s | 0 … 1e+05 | UniformAcceleration | |
| displacement of ball during flying | m | — | ||
| position of ball at end of flying | m | — | ||
| position of ball at start of flying | m | — | ||
| average velocity of ball during flying | m/s | — | ||
| time taken of flying | s | 0 … 1e+05 | ||
| average speed of ball during flying | m/s | — | ||
| path length of ball during flying | m | — | ||
| change of velocity of ball during flying | m/s | — | ||
| velocity of ball at end of flying from ground | m/s | — | ||
| velocity of ball at start of flying from ground | m/s | — | ||
| average acceleration of ball during flying | m/s² | — | ||
| acceleration of ball during flying | m/s² | — |