A Ball off a Roof Rises
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 high above the ground does it risem/s, in metres?
Inputs
Outputs
height?
How it's solved
Solved with UniformAcceleration
Given
- m/s
- m
- m/s²
- m/s from “how high above the ground does it rise”
- from “thrown straight up” and “Taking g as”
Find .
Working
- thrown straight up and Taking g as
- m/s²
- velocity after a time(rising)
- s
- position after a time(rising)
Conclusion
At the top the ball is still for an instant, so the speed it had is all spent against gravity over the height it climbs.
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_rises 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}, %{height}, in metres?"7 given throw_speed: "20 m/s"8 given building_height: "25 m"9 given gravity: "10 m/s2"10 asks height: "how high above the ground does it rise"11end1require_relative "../questions/a_ball_off_a_roof_rises"2require_relative "../science/motion_in_a_straight_line/uniform_acceleration"34solve :a_ball_off_a_roof_rises, using: UniformAcceleration do5 objects :ball6 ball.goes(:rising)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 "how high above the ground does it rise", ball.final_velocity => "0 m/s"11 take height: ball.final_position12 answer find_value(:height, in: "m")1314 conclusion "At the top the ball is still for an instant, so the speed it had is all spent " \15 "against gravity over the height it climbs."16endplayground.rb
1require_relative "../solutions/a_ball_off_a_roof_rises"23play_with :a_ball_off_a_roof_rises do4 title "A Ball off a Roof Rises"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 rising | m | — | ||
| position of ball at end of rising | m | — | ||
| position of ball at start of rising | m | — | ||
| average velocity of ball during rising | m/s | — | ||
| time taken of rising | s | 0 … 1e+05 | ||
| average speed of ball during rising | m/s | — | ||
| path length of ball during rising | m | — | ||
| change of velocity of ball during rising | m/s | — | ||
| velocity of ball at end of rising from ground | m/s | — | ||
| velocity of ball at start of rising from ground | m/s | — | ||
| average acceleration of ball during rising | m/s² | — | ||
| acceleration of ball during rising | m/s² | — |