The Long Way Round: Speed
Q. A hotel is 10 km from the station along a straight road, but a dishonest driver takes a 23 kmkm route and gets there in 28 minmin. What is the taxi's average speed, in km/h?
Inputs
Outputs
average speed?
How it's solved
Solved with MotionInAPlane
Given
- km
- min
Find .
Working
- kmm
- mins
- path a time
- km/h
- m/skm/h
- km/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.
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"10end1require_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."10endplayground.rb
1require_relative "../solutions/the_long_way_round_speed"23play_with :the_long_way_round_speed do4 title "The Long Way Round: Speed"5endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| volume | — | — | Vectors | |
| mass | — | — | Vectors | |
| speed | — | — | Vectors | |
| density | — | — | Vectors | |
| number of moles | — | — | Vectors | |
| angular frequency | — | — | Vectors | |
| work | — | — | Vectors | |
| current | — | — | Vectors | |
| temperature | — | — | Vectors | |
| pressure | — | — | Vectors | |
| time | s | 0 … 1e+05 | Vectors | |
| power | — | — | Vectors | |
| total path length | — | — | Vectors | |
| energy | — | — | Vectors | |
| gravitational potential | — | — | Vectors | |
| coefficient of friction | — | — | Vectors | |
| charge | — | — | Vectors | |
| acceleration | m/s² | — | Vectors | |
| velocity | m/s | — | Vectors | |
| displacement | m | — | Vectors | |
| angular velocity | — | — | Vectors | |
| force | — | — | Vectors | |
| angular momentum | — | — | Vectors | |
| linear momentum | — | — | Vectors | |
| electric field | — | — | Vectors | |
| average velocity | m/s | — | Vectors | |
| magnetic moment | — | — | Vectors | |
| relative velocity | — | — | Vectors | |
| impulse | — | — | Vectors | |
| first vector | — | 0 … ∞ | Vectors | |
| second vector | — | 0 … ∞ | Vectors | |
| angle between | — | 0 … 3.142 | Vectors | |
| resultant | — | 0 … ∞ | Vectors | |
| resultant direction | — | 0 … 3.142 | Vectors | |
| direction | — | -3.142 … 3.142 | Vectors | |
| x component | — | — | Vectors | |
| y component | — | — | Vectors | |
| position | m | — | Velocity | |
| path length | m | — | Velocity | |
| time taken | s | 0 … 1e+05 | Velocity | |
| average speed | m/s | — | Velocity | |
| starting position | m | — | Velocity | |
| final position | m | — | Velocity | |
| change of velocity | m/s | — | Acceleration | |
| average acceleration | m/s² | — | Acceleration | |
| starting velocity | m/s | — | Acceleration | |
| final velocity | m/s | — | Acceleration | |
| gravity | m/s² | — | UniformAcceleration |