Romberg Integration Calculator
Integrate a function with Romberg's method and see the extrapolation table.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Step 1: Open Romberg Integration Calculator and add your input
Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.
- 2Step 2: What Romberg Integration Calculator does
Integrate a function with Romberg's method and see the extrapolation table.
- 3Step 3: Read the result and compare
The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.
- 4Step 4: Copy or save it
Copy the result or download it. For an important decision, confirm it with the official source or an adviser.
About this tool
Enter f(x), the limits and the number of levels. The calculator builds the Romberg table: the first column is the trapezoid rule with 1, 2, 4, 8 … strips, and each further column applies Richardson extrapolation. The bottom-right entry is the best estimate.
Method
R(i, 0) is the composite trapezoid rule with 2ⁱ strips. R(i, j) = R(i, j−1) + (R(i, j−1) − R(i−1, j−1)) ÷ (4ʲ − 1). The second column equals Simpson's rule and the third Boole's rule.
Use
For smooth functions Romberg's table gives many correct digits from few function evaluations. It is less suited to functions with kinks or singularities. Write the function with x, + − * / ^, parentheses, and sin, cos, tan, asin, acos, atan, exp, ln, log (base 10), sqrt, abs, sinh, cosh, tanh, pi and e. Implicit multiplication such as 2x or 3(x+1) works.
Worked example
The integral of exp(−x²) from 0 to 2 is 0.88208139… ; six levels give 0.882081390762 using 33 function values.
Tips for best results
Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.
Quick facts
- Category: Math & Science
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in many languages.
- Content last reviewed:
Frequently asked questions
Why is the second column Simpson?
One extrapolation step of the trapezoid rule is exactly Simpson's rule.
How many levels can I use?
2 to 12.
When does it fail?
For non-smooth integrands.
How many evaluations?
2^(levels − 1) + 1.
