play phryzby with physics

A Ball off a Roof Rises

solved UniformAcceleration

Q. A ball is thrown straight up at 20 m/sv0=20m/s from the top of a building 25 mx0=25m tall. Taking g asa=−g 10 m/s²g=10m/s², how high above the ground does it risev1=0m/s, in metres?

x₀ = 25 mv₀ = 20 m/sx = ?v = 0 m/sdisplacement ?a = ?v̄ = ?
Inputs
v0
20.0 m/s
x0
25.00 m
g
10 m/s²
Outputs
heightx1?

How it's solved

Solved with UniformAcceleration

Given

  • v0=20m/s
  • x0=25m
  • g=10m/s²
  • v1=0m/s from “how high above the ground does it rise”
  • a=−g from “thrown straight up” and “Taking g as”

Find x1.

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

At the top the ball is still for an instant, so the speed it had is all spent against gravity over the height it climbs.

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 :a_ball_off_a_roof_rises do4  kind :numerical5  describes "A ball is thrown straight up at %{throw_speed} from the top of a building %{building_height} tall. Taking g as " \6          "%{gravity}, %{height}, in metres?"7  given throw_speed: "20 m/s"8  given building_height: "25 m"9  given gravity: "10 m/s2"10  asks height: "how high above the ground does it rise"11end
solution.rb
1require_relative "../questions/a_ball_off_a_roof_rises"2require_relative "../science/motion_in_a_straight_line/uniform_acceleration"34solve :a_ball_off_a_roof_rises, 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, building_height: ball.initial_position, gravity: g10  deduce_from "how high above the ground does it rise", ball.final_velocity => "0 m/s"11  take height: ball.final_position12  answer find_value(:height, in: "m")1314  conclusion "At the top the ball is still for an instant, so the speed it had is all spent " \15             "against gravity over the height it climbs."16end
playground.rb
1require_relative "../solutions/a_ball_off_a_roof_rises"23play_with :a_ball_off_a_roof_rises do4  title "A Ball off a Roof Rises"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