A Cricket Ball Lands
Q. A cricket ball is thrown at 28 m/sm/s, 30° above the horizontal. Taking g as 9.8 m/s²m/s², how far from the throwerm does it landm, in metres?
Inputs
Outputs
distance?
How it's solved
Solved with Projectile
Given
- m/s
- m/s²
- m from “from the thrower”
- m from “land”
Assumed
- 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 ball is aloft for as long as its upward speed allows, and all that while it travels out at its steady sideways speed.
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_cricket_ball_lands do4 kind :numerical5 describes "A cricket ball is thrown at %{speed}, %{angle} above the horizontal. Taking g as %{gravity}, %{distance}, in metres?"6 given speed: "28 m/s"7 given angle: "30 deg"8 given gravity: "9.8 m/s2"9 asks distance: "how far from the thrower does it land"10end1require_relative "../questions/a_cricket_ball_lands"2require_relative "../science/motion_in_a_plane/projectile"34solve :a_cricket_ball_lands, using: Projectile do5 objects :ball6 axes :x, :y7 ball.goes(:flying)8 take speed: ball.initial_speed, angle: ball.initial_direction, gravity: g9 deduce_from "from the thrower", ball.initial_position(along: x) => "0 m"10 assume ball.initial_position(along: y) => "0 m"11 deduce_from "land", ball.final_position(along: y) => "0 m"12 distance = ball.final_position(along: x)13 answer distance:, in: "m"14 conclusion "The ball is aloft for as long as its upward speed allows, and all that while it " \15 "travels out at its steady sideways speed."16endplayground.rb
1require_relative "../solutions/a_cricket_ball_lands"23play_with :a_cricket_ball_lands do4 title "A Cricket Ball Lands"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² | — |