Under the Ceiling
Q. A ball is thrown at 40 m/sm/s in a long hall whose ceiling is 25 mm high. Taking g as 9.8 m/s²m/s², how far can it go without touching the ceilingm/s, in metres?
Inputs
Outputs
distance?
How it's solved
Solved with Projectile
Given
- m/s
- m/s²
- m
- m/s from “without touching the ceiling”
- : the positive one of the values that fit from “without touching the ceiling”
- : the smallest of the values that fit from “how far can it go”
Assumed
- m
- m
- m
Find .
Working
- falling freely(up, y)
- m/s²
- velocity after a distance(up, y)
- m/s
- parts of a velocity(ball, thrown, y)
- the smallest is taken
- parts of a velocity(ball, thrown, x)
- m/s
- velocity after a time(up, y)
- s
- falling freely(up, x)
- m/s²
- position after a time(up, x)
- m
- velocity after a time(up, x)
- m/s
- falling freely(down, y)
- m/s²
- position after a time(down, y)
- s
- falling freely(down, x)
- m/s²
- position after a time(down, x)
Conclusion
The ceiling caps how much of the speed can go upward; throw at the angle that just grazes it, and the rest of the speed carries the ball as far as it can.
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 :under_the_ceiling do4 kind :numerical5 describes "A ball is thrown at %{speed} in a long hall whose ceiling is %{ceiling} high. Taking g as %{gravity}, " \6 "%{distance}, in metres?"7 given speed: "40 m/s"8 given gravity: "9.8 m/s2"9 given ceiling: "25 m"10 asks distance: "how far can it go without touching the ceiling"11end1require_relative "../questions/under_the_ceiling"2require_relative "../science/motion_in_a_plane/projectile"34solve :under_the_ceiling, using: Projectile do5 objects :ball6 axes :x, :y7 instants :thrown, :peak, :lands8 ball.goes(:up, during: thrown..peak)9 ball.goes(:down, during: peak..lands)10 take speed: ball.speed(at: thrown), gravity: g, ceiling: ball.position(at: peak, along: y)11 assume ball.position(at: thrown, along: x) => "0 m", ball.position(at: thrown, along: y) => "0 m",12 ball.position(at: lands, along: y) => "0 m"13 deduce_from "without touching the ceiling", ball.velocity(at: peak, along: y) => "0 m/s",14 ball.velocity(at: thrown, along: y) => :positive15 deduce_from "how far can it go", ball.direction(at: thrown) => :smallest16 distance = ball.position(at: lands, along: x)17 answer distance:, in: "m"18 conclusion "The ceiling caps how much of the speed can go upward; throw at the angle that just " \19 "grazes it, and the rest of the speed carries the ball as far as it can."20endplayground.rb
1require_relative "../solutions/under_the_ceiling"23play_with :under_the_ceiling do4 title "Under the Ceiling"5endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| volume | — | — | Vectors | |
| mass | — | — | Vectors | |
| speed | — | — | Vectors | |
| density | — | — | Vectors | |
| number of moles | — | — | Vectors | |
| angular frequency | — | — | Vectors | |
| work | — | — | Vectors | |
| current | — | — | Vectors | |
| temperature | — | — | Vectors | |
| pressure | — | — | Vectors | |
| time | s | 0 … 1e+05 | Vectors | |
| power | — | — | Vectors | |
| total path length | — | — | Vectors | |
| energy | — | — | Vectors | |
| gravitational potential | — | — | Vectors | |
| coefficient of friction | — | — | Vectors | |
| charge | — | — | Vectors | |
| acceleration | m/s² | — | Vectors | |
| velocity | m/s | — | Vectors | |
| displacement | m | — | Vectors | |
| angular velocity | — | — | Vectors | |
| force | — | — | Vectors | |
| angular momentum | — | — | Vectors | |
| linear momentum | — | — | Vectors | |
| electric field | — | — | Vectors | |
| average velocity | m/s | — | Vectors | |
| magnetic moment | — | — | Vectors | |
| relative velocity | — | — | Vectors | |
| impulse | — | — | Vectors | |
| first vector | — | 0 … ∞ | Vectors | |
| second vector | — | 0 … ∞ | Vectors | |
| angle between | — | 0 … 3.142 | Vectors | |
| resultant | — | 0 … ∞ | Vectors | |
| resultant direction | — | 0 … 3.142 | Vectors | |
| direction | — | -3.142 … 3.142 | Vectors | |
| x component | — | — | Vectors | |
| y component | — | — | Vectors | |
| position | m | — | Velocity | |
| path length | m | — | Velocity | |
| time taken | s | 0 … 1e+05 | Velocity | |
| average speed | m/s | — | Velocity | |
| starting position | m | — | Velocity | |
| final position | m | — | Velocity | |
| change of velocity | m/s | — | Acceleration | |
| average acceleration | m/s² | — | Acceleration | |
| starting velocity | m/s | — | Acceleration | |
| final velocity | m/s | — | Acceleration | |
| gravity | m/s² | — | UniformAcceleration | |
| displacement of ball during up along x | m | — | ||
| position of ball at peak along x | m | — | ||
| position of ball at thrown along x | m | — | ||
| displacement of ball during up along y | m | — | ||
| position of ball at peak along y | m | — | ||
| position of ball at thrown along y | m | — | ||
| displacement of ball during down along x | m | — | ||
| position of ball at lands along x | m | — | ||
| displacement of ball during down along y | m | — | ||
| position of ball at lands along y | m | — | ||
| average velocity of ball during up along x | m/s | — | ||
| time taken of up | s | 0 … 1e+05 | ||
| average velocity of ball during up along y | m/s | — | ||
| average velocity of ball during down along x | m/s | — | ||
| time taken of down | s | 0 … 1e+05 | ||
| average velocity of ball during down along y | m/s | — | ||
| average speed of ball during up | m/s | — | ||
| path length of ball during up | m | — | ||
| average speed of ball during down | m/s | — | ||
| path length of ball during down | m | — | ||
| change of velocity of ball during up along x | m/s | — | ||
| velocity of ball at peak from ground along x | m/s | — | ||
| velocity of ball at thrown from ground along x | m/s | — | ||
| change of velocity of ball during up along y | m/s | — | ||
| velocity of ball at peak from ground along y | m/s | — | ||
| velocity of ball at thrown from ground along y | m/s | — | ||
| change of velocity of ball during down along x | m/s | — | ||
| velocity of ball at lands from ground along x | m/s | — | ||
| change of velocity of ball during down along y | m/s | — | ||
| velocity of ball at lands from ground along y | m/s | — | ||
| average acceleration of ball during up along x | m/s² | — | ||
| average acceleration of ball during up along y | m/s² | — | ||
| average acceleration of ball during down along x | m/s² | — | ||
| average acceleration of ball during down along y | m/s² | — | ||
| acceleration of ball during up along x | m/s² | — | ||
| acceleration of ball during up along y | m/s² | — | ||
| acceleration of ball during down along x | m/s² | — | ||
| acceleration of ball during down along y | m/s² | — | ||
| velocity of ground at thrown from ground along x | m/s | — | ||
| velocity of ground at thrown from ground | m/s | — | ||
| direction of ground at thrown from ground | — | -3.142 … 3.142 | ||
| velocity of ground at thrown from ground along y | m/s | — | ||
| velocity of ground at peak from ground along x | m/s | — | ||
| velocity of ground at peak from ground | m/s | — | ||
| direction of ground at peak from ground | — | -3.142 … 3.142 | ||
| velocity of ground at peak from ground along y | m/s | — | ||
| velocity of ground at lands from ground along x | m/s | — | ||
| velocity of ground at lands from ground | m/s | — | ||
| direction of ground at lands from ground | — | -3.142 … 3.142 | ||
| velocity of ground at lands from ground along y | m/s | — | ||
| velocity of ball at thrown from ground | m/s | — | ||
| direction of ball at thrown from ground | — | -3.142 … 3.142 | ||
| velocity of ball at peak from ground | m/s | — | ||
| direction of ball at peak from ground | — | -3.142 … 3.142 | ||
| velocity of ball at lands from ground | m/s | — | ||
| direction of ball at lands from ground | — | -3.142 … 3.142 | ||
| displacement of ball during up | m | — | ||
| position of ball at peak | m | — | ||
| position of ball at thrown | m | — | ||
| displacement of ball during down | m | — | ||
| position of ball at lands | m | — | ||
| average velocity of ball during up | m/s | — | ||
| average velocity of ball during down | m/s | — | ||
| change of velocity of ball during up | m/s | — | ||
| change of velocity of ball during down | m/s | — | ||
| average acceleration of ball during up | m/s² | — | ||
| average acceleration of ball during down | m/s² | — | ||
| acceleration of ball during up | m/s² | — | ||
| acceleration of ball during down | m/s² | — |