Aircraft Propulsion·frustum-volume-calculation
Frustum Volume Calculation
Calculate the volume of a frustum (truncated cone) given its height and the diameters of its two circular bases using the standard frustum volume formula.
✓ 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 | {"height":0.03,"diameter_1":0.016,"diameter_2":0.005} | 0.00000284 | 0.000002835287369864788 | ✓ |
| 2 | {"height":0.1,"diameter_1":0.02,"diameter_2":0.01} | 0.00001833 | 0.000018325957145940463 | ✓ |
APIDeveloper APICall this calculator from codeexpand ↓
Endpoint
POST
/api/calculators/aircraft-propulsion/frustum-volume-calculation/computeInputs (3)
heightnumberdefault0.03diameter_1numberdefault0.016diameter_2numberdefault0.005
Example
curl -sX POST http://localhost:3001/api/calculators/aircraft-propulsion/frustum-volume-calculation/compute \
-H "Content-Type: application/json" \
-d '{"inputs":{"height":0.03,"diameter_1":0.016,"diameter_2":0.005}}'Try it live
Edit the body below, then click Call API.Request body
Response
(click Call API to see the response)Source: Pattern from: Momentum Eq.pdf. Reproduces a standard frustum-volume-calculation computation; problem text paraphrased.
AI disclosure: Calculator code generated by anthropic/claude-haiku-4-5-20251001; verified by 2 test cases.