Part of eval backend edge-thanveer, agent version bdd945f
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
- velocity after a distance(stopping)
- m/s²
- velocity after a time(stopping)
- sto 3 significant figures
Conclusion
The car slows down steadily, so the time to stop is the distance covered divided by the average speed.
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(:stopping)45 take speed: car.initial_velocity, distance: car.final_position67 deduce_from "comes to rest", car.final_velocity => "0 m/s"8 assume car.initial_position => "0 m"910 time = stopping.time_taken11 answer time:, in: "s", figures: 31213 conclusion "The car slows down steadily, so the time to stop is the distance covered divided by the average speed."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 stopping | m | — | ||
| position of car at end of stopping | m | — | ||
| position of car at start of stopping | m | — | ||
| average velocity of car during stopping | m/s | — | ||
| time taken of stopping | s | 0 … 1e+05 | ||
| average speed of car during stopping | m/s | — | ||
| path length of car during stopping | m | — | ||
| change of velocity of car during stopping | m/s | — | ||
| velocity of car at end of stopping from ground | m/s | — | ||
| velocity of car at start of stopping from ground | m/s | — | ||
| average acceleration of car during stopping | m/s² | — | ||
| acceleration of car during stopping | m/s² | — |