Definite Integral Test Bed
Provides the smooth benchmark integrand f(x) = e^x with known analytic integral I = e - 1.
Implement the composite trapezoidal quadrature rule, evaluate second-order asymptotic truncation error attenuation as panel width h decreases, and execute Richardson extrapolation to build the triangular Romberg integration tableau achieving high-order precision. Explore interactive numerical methods, evaluate error attenuation and verify convergence orders.
Ready to execute Step = 1.
Adjust Step, then execute computation.
Mathematical operations are computed deterministically using 64-bit IEEE 754 precision. Residuals reflect ordinary least-squares regression across successive observations.
The composite trapezoidal rule is inefficient for oscillatory or peaked integrands unless adaptive mesh refinement is employed. The simulation evaluates composite trapezoidal quadrature for step sizes h = 0.20 / 2^{k-1} on the exponential test function. The logarithmic fit ln(E) = α·ln(h) + ln(C) extracts the asymptotic order α = 2.000 with R² = 1.000000.
Provides the smooth benchmark integrand f(x) = e^x with known analytic integral I = e - 1.
Generates sequence of step sizes h_k = (b - a)/2^k, reusing function evaluations from previous levels.
Computes T(h) = h [0.5 f(a) + ∑ f(x_i) + 0.5 f(b)] with O(N) evaluations.
Calculates theoretical error coefficients c_2k = [B_{2k}/(2k)!] · [f^{(2k-1)}(b) - f^{(2k-1)}(a)] based on Bernoulli numbers.
Cancels leading O(h²) error terms to systematically construct higher columns of the Romberg tableau.
Performs linear regression on (ln(h), ln(E_h)) to empirically confirm the second-order slope α = 2.000.
Implement the composite trapezoidal quadrature rule, evaluate second-order asymptotic truncation error attenuation as panel width h decreases, and execute Richardson extrapolation to build the triangular Romberg integration tableau achieving high-order precision. Standardized input settings: 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 step.
Set up f(x) = exp(x) on [0, 1] with exact analytic reference value I = e - 1 = 1.718281828459045.
For subdivision level k = 1 to 6, set panel count N = 2^{k-1} and spacing h = 1.0 / N.
Compute T(h) = (h/2) [f(0) + 2 ∑_{i=1}^{N-1} f(i·h) + f(1)] in double precision registers.
Compute E_h = |I - T(h)| and verify that halving h reduces the error by approximately a factor of 4 (2²).
Apply the Richardson recurrence R(j, m) = [4^m R(j, m-1) - R(j-1, m-1)] / (4^m - 1) to eliminate O(h²), O(h⁴), O(h⁶) terms.
Transform panel widths and errors into logarithmic coordinates (ln(h), ln(E_h)) and perform linear regression to confirm α = 2.000.
Points are your recorded observations. The solid regression line validates Composite Trapezoidal & Romberg Quadrature mathematical scaling.
| # | Subdivision Level (k) (step) | Quadrature Error |I - T(h)| (error) | Logarithmic Panel Width ln(h) | Logarithmic Quadrature Error ln(E_h) | Remove |
|---|
No readings yet. Execute a computation and record it.