A throw on the Moon
Q. A ball is thrown at 20 m/sm/s, 45° above the ground, on the Moonm/s². How far away does it landm, in metres?
Inputs
Outputs
distance?
How it's solved
Solved with Projectile
Given
- m/s
- m/s² from “on the Moon”
- m from “land”
Assumed
- m
- m
Find .
Working
- parts of a velocity(ball, start of flying, y)
- m/s
- falling freely(flying, y)
- m/s²
- position after a time(flying, y)
- sthe start is set aside, as a later time fits
- s
- parts of a velocity(ball, start of flying, x)
- m/s
- falling freely(flying, x)
- m/s²
- position after a time(flying, x)
Conclusion
The range goes as one over the pull, so where gravity is weaker the same throw carries further in the same proportion.
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 :throw_on_the_moon do4 kind :numerical5 describes "A ball is thrown at %{speed}, %{angle} above the ground, on the Moon. %{distance}, in metres?"6 given speed: "20 m/s"7 given angle: "45 deg"8 asks distance: "How far away does it land"9end1require_relative "../questions/throw_on_the_moon"2require_relative "../science/motion_in_a_plane/projectile"3require_relative "../science/motion_in_a_plane/gravity"45solve :throw_on_the_moon, using: Projectile do6 objects :ball7 axes :x, :y8 ball.goes(:flying)9 take speed: ball.initial_speed, angle: ball.initial_direction10 deduce_from "on the Moon", g => GRAVITY.fetch("moon")11 assume ball.initial_position(along: x) => "0 m", ball.initial_position(along: y) => "0 m"12 deduce_from "land", ball.final_position(along: y) => "0 m"13 distance = ball.final_position(along: x)14 answer distance:, in: "m"15 conclusion "The range goes as one over the pull, so where gravity is weaker the same throw " \16 "carries further in the same proportion."17endplayground.rb
1require_relative "../solutions/throw_on_the_moon"23play_with :throw_on_the_moon do4 title "A throw on the Moon"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 flying along x | m | — | ||
| position of ball at end of flying along x | m | — | ||
| position of ball at start of flying along x | m | — | ||
| displacement of ball during flying along y | m | — | ||
| position of ball at end of flying along y | m | — | ||
| position of ball at start of flying along y | m | — | ||
| average velocity of ball during flying along x | m/s | — | ||
| time taken of flying | s | 0 … 1e+05 | ||
| average velocity of ball during flying along y | m/s | — | ||
| average speed of ball during flying | m/s | — | ||
| path length of ball during flying | m | — | ||
| change of velocity of ball during flying along x | m/s | — | ||
| velocity of ball at end of flying from ground along x | m/s | — | ||
| velocity of ball at start of flying from ground along x | m/s | — | ||
| change of velocity of ball during flying along y | m/s | — | ||
| velocity of ball at end of flying from ground along y | m/s | — | ||
| velocity of ball at start of flying from ground along y | m/s | — | ||
| average acceleration of ball during flying along x | m/s² | — | ||
| average acceleration of ball during flying along y | m/s² | — | ||
| acceleration of ball during flying along x | m/s² | — | ||
| acceleration of ball during flying along y | m/s² | — | ||
| velocity of ground at start of flying from ground along x | m/s | — | ||
| velocity of ground at start of flying from ground | m/s | — | ||
| direction of ground at start of flying from ground | — | -3.142 … 3.142 | ||
| velocity of ground at start of flying from ground along y | m/s | — | ||
| velocity of ground at end of flying from ground along x | m/s | — | ||
| velocity of ground at end of flying from ground | m/s | — | ||
| direction of ground at end of flying from ground | — | -3.142 … 3.142 | ||
| velocity of ground at end of flying from ground along y | m/s | — | ||
| velocity of ball at start of flying from ground | m/s | — | ||
| direction of ball at start of flying from ground | — | -3.142 … 3.142 | ||
| velocity of ball at end of flying from ground | m/s | — | ||
| direction of ball at end of flying from ground | — | -3.142 … 3.142 | ||
| 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 | — | ||
| change of velocity of ball during flying | m/s | — | ||
| average acceleration of ball during flying | m/s² | — | ||
| acceleration of ball during flying | m/s² | — |