Question: Problem 3 . 1 . Implement an adaptive 5 - point Gaussian quadrature rule as follows. Your function should take the following inputs 1 .
Problem Implement an adaptive point Gaussian quadrature rule as follows. Your function should take the following inputs
a b endpoints of the integration interval f function to integrate
tol tolerance for integral accuracy
and return an approximation to the integral Rb fxdx using the following procedure. a
Initialize an inprogress list with a a b b t R b f xdx a numerical a
variable to keep track of the integral so far, and a done list.
While the inprogress list is not empty, remove the last triple akbktk and use it
to produce two new triples ak akbk tl and akbk bk tr where integrals tl and tr are
approximated using point Guassian quadrature.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
