Part of eval multi-llm branch, agent version multi-llm-servers · 2b11b97
Car Braking
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”
- from “comes to rest”
Assumed
- m
Find .
Working
- km/hm/s
- change of position(stopping)
- m
- velocity after a distance(stopping)
- m/s²
- velocity after a time(stopping)
- sto 3 significant figures
Conclusion
The car slows down at a steady rate, so the time to stop is the distance over 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 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, using: UniformAcceleration do2 objects :car3 car.goes(:stopping)45 take speed: car.initial_velocity6 take distance: stopping.displacement78 deduce_from "comes to rest", car.final_velocity => "0 m/s"91011 assume car.initial_position => "0 m"12 deduce_from "comes to rest", car.final_position => distance1314 time = stopping.time_taken15 answer time:, in: "s", figures: 31617 conclusion "The car slows down at a steady rate, so the time to stop is the distance over the average speed."18endplayground.rb
1play_with :car_braking do2 title "Car Braking"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² | — |