Write a MATLAB program that computes the integral using the following methods: (a) Trapezoidal rule (b) Simpsons

Question:

Write a MATLAB program that computes the integralxp [(x2)+7][x -J

using the following methods:

(a) Trapezoidal rule

(b) Simpson’s 1/3 rule

(c) Simpson’s 3/8 rule

(d) Boole’s rule

(e) Fifth-order Newton–Coates

(f) Multiple trapezoidal rule (ten times)

(g) Multiple trapezoidal rule (100 times)

(h) Gauss quadrature

(i) Richardson extrapolation (using four and eight trapezoidal rule evaluations)

(j) Richardson extrapolation (using ten and 100 trapezoidal rule evaluations).

You program should print the results to the screen along with some text that explains which result is being printed using the fprintf command.

Table 8.6 Rate data for Problem 8.12. A 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 -TA (M/S) 3.94 2.91 2.33 1.95 1.47

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: