play phryzby with physics

Part of eval backend edge-thanveer, agent version bdd945f

Car Braking To Rest

solved UniformAcceleration

Q. A car doing 126 km/hv0=126km/h brakes steadily and comes to restv1=0m/s in 200 mx1=200m. How long does it take to stop, in seconds?

x₀ = 0 mv₀ = 35 m/sx = 200 mv = 0 m/sdisplacement ?a = ?v̄ = ?
Inputs
v0
126 km/h
x1
200.00 m
Outputs
timeΔt?

How it's solved

Solved with UniformAcceleration

Given

  • v0=126km/h
  • x1=200m
  • v1=0m/s from “comes to rest”

Assumed

  • x0=0m

Find Δt.

Working
  1. v0=126km/h=35m/s
  2. velocity after a distance(stopping)v12=v02+2⋅a⋅(x1-x0)
  3. 02=352+2⋅a⋅(200-0)
  4. a=−3.0625m/s²
  5. velocity after a time(stopping)v1=v0+a⋅Δt
  6. 0=35+(−3.0625)⋅Δt
  7. Δt=11.43 s
  8. Δt≈11.4sto 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.

question.rb
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"7end
solution.rb
1solve :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."14end
playground.rb
1play_with :car_braking_to_rest do2  title "Car Braking To Rest"3end
The laws it drew on
quantitywrittenunitswithinfrom
positionxm—Velocity
displacementΔxm—Velocity
path lengthdm—Velocity
time takenΔts0 … 1e+05Velocity
average velocityvavm/s—Velocity
average speedcavm/s—Velocity
starting positionx0m—Velocity
final positionxm—Velocity
velocityvm/s—Acceleration
change of velocityΔvm/s—Acceleration
average accelerationaavm/s²—Acceleration
starting velocityv0m/s—Acceleration
final velocityvm/s—Acceleration
accelerationam/s²—UniformAcceleration
gravitygm/s²—UniformAcceleration
timets0 … 1e+05UniformAcceleration
displacement of car during stoppingΔxm—
position of car at end of stoppingx1m—
position of car at start of stoppingx0m—
average velocity of car during stoppingvavm/s—
time taken of stoppingΔts0 … 1e+05
average speed of car during stoppingcavm/s—
path length of car during stoppingdm—
change of velocity of car during stoppingΔvm/s—
velocity of car at end of stopping from groundv1m/s—
velocity of car at start of stopping from groundv0m/s—
average acceleration of car during stoppingaavm/s²—
acceleration of car during stoppingam/s²—
x0≡xi(start of motion)
starting position
x≡xi(end of motion)
final position
v0≡vi(start of motion)
starting velocity
v≡vi(end of motion)
final velocity
t≡Δtm
time
di(whole)=di(part 1)+di(part 2)
path in parts
Δtw=Δtp+Δtp
time in parts
ai(part 1)=ai(whole)
steady through its parts
Δx=x1-x0
change of position(stopping)
vav=ΔxΔt
displacement a time(stopping)
cav=dΔt
path a time(stopping)
Δv=v1-v0
velocity gained(stopping)
aav=ΔvΔt
velocity gained a time(stopping)
v1=v0+a⋅Δt
velocity after a time(stopping)
x1=x0+v0⋅Δt+a⋅Δt22
position after a time(stopping)
v12=v02+2⋅a⋅(x1-x0)
velocity after a distance(stopping)
x1-x0=(v1+v0)⋅Δt2
mean of the velocities(stopping)