play phryzby with physics

There and Back: Velocity

solved Velocity

Q. A man walks 2.5 kmd(t)=2.5km to a market in 30 minΔtt=30min, finds it shut, and walks straight homex(home)=0km in 20 minΔtb=20min. What is the size of his average velocity over the whole walk, in km/h?

x₀ = 0 mv̄ = ?
Inputs
d
2.5 km
Δtt
30 min
Δtb
20 min
Outputs
average velocityvav?

How it's solved

Solved with Velocity

Given

  • d(t)=2.5km
  • Δtt=30min
  • Δtb=20min
  • x(home)=0km from “walks straight home”

Assumed

  • x(start)=0km

Find vav(w).

Working
  1. d(t)=2.5km=2500m
  2. Δtt=30min=1800s
  3. Δtb=20min=1200s
  4. x(start)=0km=0m
  5. x(home)=0km=0m
  6. change of position(walking)Δx(w)=x(home)-x(start)
  7. Δx(w)=0-0
  8. Δx(w)=0m
  9. time in parts(walking)Δtw=Δtt+Δtb
  10. Δtw=1800+1200
  11. Δtw=3000s
  12. displacement a time(walking)vav(w)=Δx(w)Δtw
  13. vav(w)=03000
  14. vav(w)=0km/h
  15. vav(w)=0m/s=0km/h
Conclusion

Average velocity asks only where he ended up. He ended where he began, so however far he walked it is nothing.

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 :there_and_back_velocity do4  kind :numerical5  describes "A man walks %{path_there} to a market in %{time_there}, finds it shut, and walks straight home " \6          "in %{time_back}. %{average_velocity}, in km/h?"7  given path_there: "2.5 km", time_there: "30 min", time_back: "20 min"8  asks average_velocity: "What is the size of his average velocity over the whole walk"9end
solution.rb
1require_relative "../questions/there_and_back_velocity"2require_relative "../science/motion_in_a_straight_line/velocity"34solve :there_and_back_velocity, using: Velocity do5  objects :man6  instants :start, :market, :home7  man.goes(:to_market, during: start..market)8  man.goes(:back_home, during: market..home)9  man.goes(:walking, during: start..home)10  take path_there: to_market.path_length, time_there: to_market.time_taken, time_back: back_home.time_taken11  assume man.position(at: start) => "0 km"12  deduce_from "walks straight home", man.position(at: home) => "0 km"13  average_velocity = walking.average_velocity14  answer average_velocity:, in: "km/h"15  conclusion "Average velocity asks only where he ended up. He ended where he began, so however " \16             "far he walked it is nothing."17end
playground.rb
1require_relative "../solutions/there_and_back_velocity"23play_with :there_and_back_velocity do4  title "There and Back: Velocity"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
displacement of man during to marketΔx(t)m—
position of man at marketx(market)m—
position of man at startx(start)m—
displacement of man during back homeΔx(b)m—
position of man at homex(home)m—
displacement of man during walkingΔx(w)m—
average velocity of man during to marketvav(t)m/s—
time taken of to marketΔtts0 … 1e+05
average velocity of man during back homevav(b)m/s—
time taken of back homeΔtbs0 … 1e+05
average velocity of man during walkingvav(w)m/s—
time taken of walkingΔtws0 … 1e+05
average speed of man during to marketcav(t)m/s—
path length of man during to marketd(t)m—
average speed of man during back homecav(b)m/s—
path length of man during back homed(b)m—
average speed of man during walkingcav(w)m/s—
path length of man during walkingd(w)m—
x0≡xi(start of motion)
starting position
x≡xi(end of motion)
final position
di(whole)=di(part 1)+di(part 2)
path in parts
Δtw=Δtp+Δtp
time in parts
Δx(t)=x(market)-x(start)
change of position(to market)
Δx(b)=x(home)-x(market)
change of position(back home)
Δx(w)=x(home)-x(start)
change of position(walking)
vav(t)=Δx(t)Δtt
displacement a time(to market)
vav(b)=Δx(b)Δtb
displacement a time(back home)
vav(w)=Δx(w)Δtw
displacement a time(walking)
cav(t)=d(t)Δtt
path a time(to market)
cav(b)=d(b)Δtb
path a time(back home)
cav(w)=d(w)Δtw
path a time(walking)
d(w)=d(t)+d(b)
path in parts(walking)
Δtw=Δtt+Δtb
time in parts(walking)