ResearchForge / Calculators
Calculus/Cal 2·average-value-of-function

Average Value Of Function

Find the average value of a function over a specified interval.

Math animationCalculus/Cal 2 · average-value-of-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.

#InputsExpectedGotStatus
1{"function":"sqrt(x)","interval_start":1,"interval_end":8}2.0597542.059753999805912
2{"function":"x^2","interval_start":0,"interval_end":2}1.3333331.3333333333333326
APIDeveloper APICall this calculator from codeexpand ↓
Endpoint
POST/api/calculators/calculus-cal-2/average-value-of-function/compute
Inputs (3)
  • functionexpressiondefault "sqrt(x)"
  • interval_startnumberdefault 1
  • interval_endnumberdefault 8
Example
curl -sX POST http://localhost:3001/api/calculators/calculus-cal-2/average-value-of-function/compute \
  -H "Content-Type: application/json" \
  -d '{"inputs":{"function":"sqrt(x)","interval_start":1,"interval_end":8}}'
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: Calculus II Final Exam Review.pdf. Reproduces a standard average-value-of-function computation; problem text paraphrased.

AI disclosure: Calculator code generated by openai/gpt-4o-mini-2024-07-18; verified by 2 test cases.