Exercise: Gauss-Chebyshev and an error bound
Determining how many nodes guarantee six decimals in an integral with Chebyshev weight.
Choosing n before computing
ExampleIntegral with Chebyshev weight
Compute with six guaranteed decimals using the error bound.
The Chebyshev error bound is bounded by e on (-1,1):
Testing n=1,2,3,4,5 gives the bounds:
The first that guarantees error below is .
With the five Chebyshev nodes, the weighted sum gives:
The bound is used to decide n before trusting the decimals of the result.