1. Exact Integration of a Quadratic Polynomial
Engineering StudentBackground
A student needs to verify numerical quadrature behavior on polynomial curves for an applied mathematics assignment.
Problem
Calculate the definite integral of x^2 from 0 to 1 and compare the approximation with the analytical antiderivative.
How to use
Enter `x^2` for f(x), set lower limit `0`, upper limit `1`, subintervals `4`, and supply antiderivative `x^3/3`.
f(x) = x^2, a = 0, b = 1, n = 4, exactF = x^3/3, decimalPlaces = 6Outcome
Generates a 5-node table (weights 1, 4, 2, 4, 1) and returns an exact estimate of 0.333333 with 0.000000 absolute error.