play phryzby with physics

The Long Way Round: Speed

solved MotionInAPlane

Q. A hotel is 10 km from the station along a straight road, but a dishonest driver takes a 23 kmd=23km route and gets there in 28 minΔt=28min. What is the taxi's average speed, in km/h?

path = 23000 mt = 1680 saverage speed = ?
Inputs
d
23 km
Δt
28 min
Outputs
average speedcav?

How it's solved

Solved with MotionInAPlane

Given

  • d=23km
  • Δt=28min

Find cav.

Working
  1. d=23km=23000m
  2. Δt=28min=1680s
  3. path a timecav=dΔt
  4. cav=230001680
  5. cav=49.29km/h
  6. cav=13.6904762m/s=49.2857143km/h
  7. cav≈49.3km/hto 3 significant figures
Conclusion

Average speed counts the whole of the road driven, however roundabout.

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 :the_long_way_round_speed do4  kind :numerical5  describes "A hotel is 10 km from the station along a straight road, but a dishonest driver takes a " \6          "%{route} route and gets there in %{time}. %{average_speed}, in km/h?"7  given route: "23 km"8  given time: "28 min"9  asks average_speed: "What is the taxi's average speed"10end
solution.rb
1require_relative "../questions/the_long_way_round_speed"2require_relative "../science/motion_in_a_plane/motion_in_a_plane"34solve :the_long_way_round_speed, using: MotionInAPlane do5  take route: :d, time: :Delta_t6  take average_speed: :c_av7  answer find_value(:average_speed, in: "km/h", figures: 3)89  conclusion "Average speed counts the whole of the road driven, however roundabout."10end
playground.rb
1require_relative "../solutions/the_long_way_round_speed"23play_with :the_long_way_round_speed do4  title "The Long Way Round: Speed"5end
The laws it drew on
quantitywrittenunitswithinfrom
volumevolume——Vectors
massmass——Vectors
speedspeed——Vectors
densitydensity——Vectors
number of molesn——Vectors
angular frequencyangularfrequency——Vectors
workwork——Vectors
currentcurrent——Vectors
temperaturetemperature——Vectors
pressurepressure——Vectors
timets0 … 1e+05Vectors
powerpower——Vectors
total path lengths——Vectors
energyenergy——Vectors
gravitational potentialgravitationalpotential——Vectors
coefficient of frictionμ——Vectors
chargecharge——Vectors
accelerationam/s²—Vectors
velocityvm/s—Vectors
displacementΔxm—Vectors
angular velocityangularvelocity——Vectors
forceforce——Vectors
angular momentumangularmomentum——Vectors
linear momentumplin——Vectors
electric fieldelectricfield——Vectors
average velocityvavm/s—Vectors
magnetic momentmagneticmoment——Vectors
relative velocityvAB——Vectors
impulseimpulse——Vectors
first vectorA—0 … ∞Vectors
second vectorB—0 … ∞Vectors
angle betweenφ—0 … 3.142Vectors
resultantR—0 … ∞Vectors
resultant directionβ—0 … 3.142Vectors
directionα—-3.142 … 3.142Vectors
x componentAx——Vectors
y componentAy——Vectors
positionxm—Velocity
path lengthdm—Velocity
time takenΔts0 … 1e+05Velocity
average speedcavm/s—Velocity
starting positionx0m—Velocity
final positionxm—Velocity
change of velocityΔvm/s—Acceleration
average accelerationaavm/s²—Acceleration
starting velocityv0m/s—Acceleration
final velocityvm/s—Acceleration
gravitygm/s²—UniformAcceleration
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
A=Ax2+Ay2
magnitude from components
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
vo,x(t)=vo(t)⋅cos⁡θo(t)
parts of a velocity
R2=A2+B2+2⋅A⋅B⋅cos⁡φ
law of cosines
R⋅sin⁡β=B⋅sin⁡φ
law of sines
R⋅cos⁡β=A+B⋅cos⁡φ
along the first
Ax=A⋅cos⁡α
resolved along x
Ay=A⋅sin⁡α
resolved along y
Δx=x-x0
change of position
vav=ΔxΔt
displacement a time
cav=dΔt
path a time
Δv=v-v0
velocity gained
aav=ΔvΔt
velocity gained a time
v=v0+a⋅t
velocity after a time
x=x0+v0⋅t+a⋅t22
position after a time
v2=v02+2⋅a⋅(x-x0)
velocity after a distance
x-x0=(v+v0)⋅t2
mean of the velocities