Both Times a Ball Passes a Ledge
Q. A ball is thrown straight up at 20 m/sm/s from the foot of a wallm with a ledge 15 mm up it. Taking g as 9.8 m/s²m/s², at what times after the throw does it pass the ledge, in seconds?
Inputs
Outputs
times?
How it's solved
Solved with UniformAcceleration
Given
- m/s
- m/s²
- m
- m from “from the foot of a wall”
- from “thrown straight up” and “Taking g as”
Find .
Working
- thrown straight up and Taking g as
- m/s²
- position after a time(flying)
- sall of them are taken
- sto 3 significant figures
Conclusion
The ball passes the ledge twice, once rising and once falling back, so both times answer the question; they sit evenly either side of the top of the flight, about 2.04 s after the throw.
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 :both_times_a_ball_passes_a_ledge do4 kind :numerical5 describes "A ball is thrown straight up at %{throw_speed} from the foot of a wall with a ledge %{height} up it. " \6 "Taking g as %{gravity}, %{times}, in seconds?"7 given throw_speed: "20 m/s"8 given height: "15 m"9 given gravity: "9.8 m/s2"10 asks times: "at what times after the throw does it pass the ledge"11end1require_relative "../questions/both_times_a_ball_passes_a_ledge"2require_relative "../science/motion_in_a_straight_line/uniform_acceleration"34solve :both_times_a_ball_passes_a_ledge, 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, gravity: g, height: ball.final_position10 deduce_from "from the foot of a wall", ball.initial_position => "0 m"11 take times: flying.time_taken12 answer find_value(:times, in: "s", figures: 3, root: :all)1314 conclusion "The ball passes the ledge twice, once rising and once falling back, so both times answer the " \15 "question; they sit evenly either side of the top of the flight, about 2.04 s after the throw."16endplayground.rb
1require_relative "../solutions/both_times_a_ball_passes_a_ledge"23play_with :both_times_a_ball_passes_a_ledge do4 title "Both Times a Ball Passes a Ledge"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² | — |