ResearchForge / Calculators
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.

#InputsExpectedGotStatus
1{"height":0.03,"diameter_1":0.016,"diameter_2":0.005}0.000002840.000002835287369864788
2{"height":0.1,"diameter_1":0.02,"diameter_2":0.01}0.000018330.000018325957145940463
APIDeveloper APICall this calculator from codeexpand ↓
Endpoint
POST/api/calculators/aircraft-propulsion/frustum-volume-calculation/compute
Inputs (3)
  • heightnumberdefault 0.03
  • diameter_1numberdefault 0.016
  • diameter_2numberdefault 0.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)
full API docs →

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.