Dynamics·kinematics-total-distance-traveled
Kinematics Total Distance Traveled
Determine the total distance traveled by a particle over a specified time interval based on its position function.
✓ All 2 test cases pass.
Inputs
Test cases
These cases run live in your browser every time the page loads. If any fail, the calculator is broken — file an issue.
| # | Inputs | Expected | Got | Status |
|---|---|---|---|---|
| 1 | {"time_start":0,"time_end":6,"position_function":"1.5*t^3 - 13.5*t^2 + 22.5*t"} | 69 | 69.00000019199997 | ✓ |
| 2 | {"time_start":1,"time_end":5,"position_function":"1.5*t^3 - 13.5*t^2 + 22.5*t"} | 48 | 47.999999999999986 | ✓ |
APIDeveloper APICall this calculator from codeexpand ↓
Endpoint
POST
/api/calculators/dynamics/kinematics-total-distance-traveled/computeInputs (3)
time_startnumberdefault0time_endnumberdefault6position_functionexpressiondefault"1.5*t^3 - 13.5*t^2 + 22.5*t"
Example
curl -sX POST http://localhost:3001/api/calculators/dynamics/kinematics-total-distance-traveled/compute \
-H "Content-Type: application/json" \
-d '{"inputs":{"time_start":0,"time_end":6,"position_function":"1.5*t^3 - 13.5*t^2 + 22.5*t"}}'Try it live
Edit the body below, then click Call API.Request body
Response
(click Call API to see the response)Source: Pattern from: Russell C. Hibbeler - Engineering Mechanics_ Dynamics (14th Edition) Instructor's Solutions Manual-Prentice Hall (2015).pdf. Reproduces a standard kinematics-total-distance-traveled computation; problem text paraphrased.
AI disclosure: Calculator code generated by openai/gpt-4o-mini-2024-07-18; verified by 2 test cases.