Docsity

Adaptive Integration: Reducing Error in Trapezoidal Rule - Prof. Ramani Duraiswami, Study notes of Computer Science

Partial preview of the text

Download Adaptive Integration: Reducing Error in Trapezoidal Rule - Prof. Ramani Duraiswami and more Study notes Computer Science in PDF only on Docsity!

Error analysis

Formula for trapezoidal rule

If f(t) and its 1

st^

two derivatives are continuous on [a,b],

then

How to reduce error?

•^

If (b-a) is large error is higher– Use composite rules.– As we saw they give lower error

Error of composite trapezoid

•^

Error decreases by a factor of (b-a)

2

Adaptive integration

-^

In general we do not have a graph totell us where things are bad.

-^

Need a function which estimates theerror locally

-^

Idea: use two formulae: one moreaccurate, and one less accurate ineach interval and estimate the error

-^

Difference gives an estimate of theerror locally

-^

Where error is largerwe need to do something

-^

If local error estimate is less than tolerance in a particular regionwe can stop dividing it.

-^

Otherwise split the interval in two pieces, and repeat the procedure

-^

Each sub-interval tolerance requirement needs to be half that of theparents

-^

Upon convergence each subinterval achieves success.–

Some subintervals needed lots of points, others few

-^

Add up all sub interval answers and report to calling program