Question: Develop a user-friendly computer program for adaptive quadrature based on Fig. 22.5. Test it by solving Prob. 22.10. Fig 22.5. FUNCTION quadapt(a, b) tol 0.000001

Develop a user-friendly computer program for adaptive quadrature based on Fig. 22.5. Test it by solving Prob. 22.10.
Fig 22.5.
Develop a user-friendly computer program for adaptive quadrature based on

FUNCTION quadapt(a, b) tol 0.000001 c= (a + b)12 fa-f(a) fc f(c) fb-f(b) quadapt qstep(a, b. tol. fa, fc, fb) END quadapt (main calling function) (initialization) FUNCTION qstep(a, b, tol, fa, fc, fb) (recursive function) h2 h112 c-a b)/2 fd= f( (a + c)/2) Simpson's 1/3 rule) 12=h2/6 * (fa + 4 * fd + 2 * fc + 4 * fe + fb) IF 12 11 S tol THEN (terminate after Boole's rule) ELSE I-12+ (12- I1)/15 (recursive calls if needed) la = qstep(a, c, tol, fa, fd, fc) Ib= qstep(c. b. tol. fc, fe, fb) I = Ia + Ib END IF qstep = 1 END qstep

Step by Step Solution

3.42 Rating (171 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a VBA program to implement the algorithm from Fig 225 It is set up to evaluate the integral from Prob 2210 Option Explicit Function quadadapta ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

1228-M-N-A-O(890).docx

120 KBs Word File

Students Have Also Explored These Related Numerical Analysis Questions!