How Long to Stop
Q. A car doing 126 km/hkm/h brakes steadily and comes to restm/s in 200 mm. How long does it take to stop, in seconds?
Inputs
Outputs
time?
How it's solved
Solved with UniformAcceleration
Given
- km/h
- m
- m/s from “comes to rest”
Assumed
- m
Find .
Working
- km/hm/s
- velocity after a distance
- m/s²
- velocity after a time
- sto 3 significant figures
Conclusion
Under a steady acceleration the average velocity is halfway between the first and the last, so the time is the distance over that average.
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 :how_long_to_stop do4 kind :numerical5 describes "A car doing %{speed} brakes steadily and comes to rest in %{distance}. %{time}, in seconds?"6 given speed: "126 km/h"7 given distance: "200 m"8 asks time: "How long does it take to stop"9end1require_relative "../questions/how_long_to_stop"2require_relative "../science/motion_in_a_straight_line/uniform_acceleration"34solve :how_long_to_stop, using: UniformAcceleration do5 take speed: :v_0, distance: :x6 deduce_from "comes to rest", v: "0 m/s"7 assume x_0: "0 m"8 take time: :t9 answer find_value(:time, in: "s", figures: 3)1011 conclusion "Under a steady acceleration the average velocity is halfway between the first and " \12 "the last, so the time is the distance over that average."13endplayground.rb
1require_relative "../solutions/how_long_to_stop"23play_with :how_long_to_stop do4 title "How Long to Stop"5endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| position | m | — | Velocity | |
| displacement | m | — | Velocity | |
| path length | m | — | Velocity | |
| time taken | s | 0 … 1e+05 | Velocity | |
| average velocity | m/s | — | Velocity | |
| average speed | m/s | — | Velocity | |
| starting position | m | — | Velocity | |
| final position | m | — | Velocity | |
| velocity | m/s | — | Acceleration | |
| change of velocity | m/s | — | Acceleration | |
| average acceleration | m/s² | — | Acceleration | |
| starting velocity | m/s | — | Acceleration | |
| final velocity | m/s | — | Acceleration | |
| acceleration | m/s² | — | UniformAcceleration | |
| gravity | m/s² | — | UniformAcceleration | |
| time | s | 0 … 1e+05 | UniformAcceleration |