play phryzby with physics

How High It Goes

solved UniformAcceleration

Q. A ball is thrown straight up at 29.4 m/sv0=29.4m/s. Taking g asa=−g 9.8 m/s²g=9.8m/s², how high does it risev1=0m/s, in metres?

x₀ = 0 mv₀ = 29.4 m/sx = ?v = 0 m/sdisplacement ?a = ?v̄ = ?
Inputs
v0
29.4 m/s
g
9.8 m/s²
Outputs
heightx1?

How it's solved

Solved with UniformAcceleration

Given

  • v0=29.4m/s
  • g=9.8m/s²
  • v1=0m/s from “how high does it rise”
  • a=−g from “thrown straight up” and “Taking g as”

Assumed

  • x0=0m

Find x1.

Working
  1. thrown straight up and Taking g asa=−g
  2. a=−9.8
  3. a=−9.8m/s²
  4. velocity after a time(rising)v1=v0+a⋅Δt
  5. 0=29.4+(−9.8)⋅Δt
  6. Δt=3s
  7. position after a time(rising)x1=x0+v0⋅Δt+a⋅Δt22
  8. x1=0+29.4⋅3+(−9.8)⋅322
  9. x1=44.10 m
Conclusion

The height goes as the square of the launch speed: throw twice as fast and it climbs four times as high.

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.

question.rb
1require_relative "../physics"23question :how_high_it_goes do4  kind :numerical5  describes "A ball is thrown straight up at %{throw_speed}. Taking g as %{gravity}, %{height}, in metres?"6  given throw_speed: "29.4 m/s"7  given gravity: "9.8 m/s2"8  asks height: "how high does it rise"9end
solution.rb
1require_relative "../questions/how_high_it_goes"2require_relative "../science/motion_in_a_straight_line/uniform_acceleration"34solve :how_high_it_goes, 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, gravity: g10  assume ball.initial_position => "0 m"11  deduce_from "how high does it rise", ball.final_velocity => "0 m/s"12  take height: ball.final_position13  answer find_value(:height, in: "m")1415  conclusion "The height goes as the square of the launch speed: throw twice as fast and it " \16             "climbs four times as high."17end
playground.rb
1require_relative "../solutions/how_high_it_goes"23play_with :how_high_it_goes do4  title "How High It Goes"5end
The laws it drew on
quantitywrittenunitswithinfrom
positionxm—Velocity
displacementΔxm—Velocity
path lengthdm—Velocity
time takenΔts0 … 1e+05Velocity
average velocityvavm/s—Velocity
average speedcavm/s—Velocity
starting positionx0m—Velocity
final positionxm—Velocity
velocityvm/s—Acceleration
change of velocityΔvm/s—Acceleration
average accelerationaavm/s²—Acceleration
starting velocityv0m/s—Acceleration
final velocityvm/s—Acceleration
accelerationam/s²—UniformAcceleration
gravitygm/s²—UniformAcceleration
timets0 … 1e+05UniformAcceleration
displacement of ball during risingΔxm—
position of ball at end of risingx1m—
position of ball at start of risingx0m—
average velocity of ball during risingvavm/s—
time taken of risingΔts0 … 1e+05
average speed of ball during risingcavm/s—
path length of ball during risingdm—
change of velocity of ball during risingΔvm/s—
velocity of ball at end of rising from groundv1m/s—
velocity of ball at start of rising from groundv0m/s—
average acceleration of ball during risingaavm/s²—
acceleration of ball during risingam/s²—
x0≡xi(start of motion)
starting position
x≡xi(end of motion)
final position
v0≡vi(start of motion)
starting velocity
v≡vi(end of motion)
final velocity
t≡Δtm
time
di(whole)=di(part 1)+di(part 2)
path in parts
Δtw=Δtp+Δtp
time in parts
ai(part 1)=ai(whole)
steady through its parts
Δx=x1-x0
change of position(rising)
vav=ΔxΔt
displacement a time(rising)
cav=dΔt
path a time(rising)
Δv=v1-v0
velocity gained(rising)
aav=ΔvΔt
velocity gained a time(rising)
v1=v0+a⋅Δt
velocity after a time(rising)
x1=x0+v0⋅Δt+a⋅Δt22
position after a time(rising)
v12=v02+2⋅a⋅(x1-x0)
velocity after a distance(rising)
x1-x0=(v1+v0)⋅Δt2
mean of the velocities(rising)
a=−g
thrown straight up and Taking g as