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

  1. 1
    Step 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.

  2. 2
    Step 2: What Romberg Integration Calculator does

    Integrate a function with Romberg's method and see the extrapolation table.

  3. 3
    Step 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.

  4. 4
    Step 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

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

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.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages