play phryzby with physics

There and Back: Speed

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 homed(b)=2.5km in 20 minΔtb=20min. What is his average speed over the whole walk, in km/h?

2500 m in 1800 s2500 m in 1200 sstartmarkethomewalking: average speed ?
Inputs
d
2.5 km
Δtt
30 min
Δtb
20 min
Outputs
average speedcav?

How it's solved

Solved with Velocity

Given

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

Find cav(w).

Working
  1. d(t)=2.5km=2500m
  2. Δtt=30min=1800s
  3. Δtb=20min=1200s
  4. d(b)=2.5km=2500m
  5. path in parts(walking)d(w)=d(t)+d(b)
  6. d(w)=2500+2500
  7. d(w)=5000m
  8. time in parts(walking)Δtw=Δtt+Δtb
  9. Δtw=1800+1200
  10. Δtw=3000s
  11. path a time(walking)cav(w)=d(w)Δtw
  12. cav(w)=50003000
  13. cav(w)=6km/h
  14. cav(w)=1.66666667m/s=6km/h
Conclusion

Average speed counts every step of the path, so it is never less than the size of the average velocity, and a tired man is not told he stood still.

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_speed do4  kind :numerical5  describes "A man walks %{path_there} to a market in %{time_there}, finds it shut, and walks straight home in " \6          "%{time_back}. %{average_speed}, in km/h?"7  given path_there: "2.5 km", time_there: "30 min", time_back: "20 min"8  asks average_speed: "What is his average speed over the whole walk"9end
solution.rb
1require_relative "../questions/there_and_back_speed"2require_relative "../science/motion_in_a_straight_line/velocity"34solve :there_and_back_speed, 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  deduce_from "walks straight home", back_home.path_length => "2.5 km"12  average_speed = walking.average_speed13  answer average_speed:, in: "km/h"14  conclusion "Average speed counts every step of the path, so it is never less than the size of " \15             "the average velocity, and a tired man is not told he stood still."16end
playground.rb
1require_relative "../solutions/there_and_back_speed"23play_with :there_and_back_speed do4  title "There and Back: Speed"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)