Question: Problem 1 . you have a function f ( x ) = exp ( - x 2 ) that you need to integrate over the

Problem 1. you have a function f(x)=exp(-x2) that you need to integrate over the interval 2,12. Using composite trapezoid rule,
a. If the partition of the interval is n=4, write out (no need to compute the value) the expression of the composite trapezoid rule.
b. Use the code-demo on Canvas (lec 7 code demo): Composite trapezoid drive.m (definitely need to modify, you cannot use it as it is b/c that's definitely wrong) to compute the numerical quadrature using composite trapezoid rule when the partition of the interval n=10. Attach your code and report the result (value).
Problem 1 . you have a function f ( x ) = exp ( -

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Programming Questions!