Part of eval pr72 v4 main rerun 1, agent version bd007a8
Car Braking To Rest
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
- change of position(braking)
- m
- velocity after a distance(braking)
- m/s²
- velocity after a time(braking)
- sto 3 significant figures
Conclusion
The car slows down at a steady rate, so the time to stop is the distance over the mean of the initial and final speeds.
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.
1question :car_braking_to_rest do2 kind :numerical3 describes "A car doing %{speed} brakes steadily and comes to rest in %{distance}. %{time}, in seconds?"4 given speed: "126 km/h"5 given distance: "200 m"6 asks time: "How long does it take to stop"7end1solve :car_braking_to_rest, using: UniformAcceleration do2 objects :car3 car.goes(:braking)45 take speed: car.initial_velocity, distance: car.displacement(during: braking).magnitude67 deduce_from "comes to rest", car.final_velocity => "0 m/s"8 assume car.initial_position => "0 m"910 time = braking.time_taken11 answer time:, in: "s", figures: 31213 conclusion "The car slows down at a steady rate, so the time to stop is the distance over the mean of the initial and final speeds."14endplayground.rb
1play_with :car_braking_to_rest do2 title "Car Braking To Rest"3endThe 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 | |
| displacement of car during braking | m | — | ||
| position of car at end of braking | m | — | ||
| position of car at start of braking | m | — | ||
| average velocity of car during braking | m/s | — | ||
| time taken of braking | s | 0 … 1e+05 | ||
| average speed of car during braking | m/s | — | ||
| path length of car during braking | m | — | ||
| change of velocity of car during braking | m/s | — | ||
| velocity of car at end of braking from ground | m/s | — | ||
| velocity of car at start of braking from ground | m/s | — | ||
| average acceleration of car during braking | m/s² | — | ||
| acceleration of car during braking | m/s² | — |