Engineering optimzation·rotational-kinetic-energy
Rotational Kinetic Energy
Given the moment of inertia and angular velocity of a rotating body, compute the rotational kinetic energy stored in the system.
✓ All 3 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 | {"J":2,"angular_velocity":4} | 16 | 16 | ✓ |
| 2 | {"J":0.5,"angular_velocity":2} | 1 | 1 | ✓ |
| 3 | {"J":3,"angular_velocity":3} | 13.5 | 13.5 | ✓ |
APIDeveloper APICall this calculator from codeexpand ↓
Endpoint
POST
/api/calculators/engineering-optimzation/rotational-kinetic-energy/computeInputs (2)
Jnumberdefault1angular_velocitynumberdefault1
Example
curl -sX POST http://localhost:3001/api/calculators/engineering-optimzation/rotational-kinetic-energy/compute \
-H "Content-Type: application/json" \
-d '{"inputs":{"J":1,"angular_velocity":1}}'Try it live
Edit the body below, then click Call API.Request body
Response
(click Call API to see the response)Source: Pattern from: Ch1.pdf. Reproduces a standard rotational-kinetic-energy computation; problem text paraphrased.
AI disclosure: Calculator code generated by anthropic/claude-haiku-4-5-20251001; verified by 3 test cases.