Question: Need written in Fortran Language. Lab #4 Integration Trapezoidal Rule and Simpson's Rule Graph the following function in Mathematica: f(x) --x22x 8, on the interval

Need written in Fortran Language.

Need written in Fortran Language. Lab #4 Integration Trapezoidal Rule and Simpson's

Lab #4 Integration Trapezoidal Rule and Simpson's Rule Graph the following function in Mathematica: f(x) --x22x 8, on the interval [-4,6]. Use the Trapezoidal Rule and Simpson's Rule give approximations to the integral: Jaf(x)dx. a) Trapezoidal Rule f(x)dx *f(xo) 2f(x1) 2f (x2) + 2f(x3) + . + 2f(xn-1+f(xn)], where h = , and n is the number of equally spaced intervals [a, b] is split up on. 7n The error for this approximation is: (b-a 12n2 f"(?), where te [a, b] - Write a program to sum the areas of the trapezoids to approximate the actual area under the curve from-2 to 4, with h 0.5. b) Simpson's Rule f(x)dxxo 4f(xi) 2f(x2) +4f(x3) 2f(x4)4f(xn-i) +f(xn)). b-a where h-and n is the number of equally spaced intervals [a, b] is split up on. The error for this approximation is: m (b-a) max If(4)(f)1,where E [a, b] Write a program to sum the areas under the interpolated curves to approximate the actual 72 180 area under the curve from-2 to 4, with h = 0.5

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 Databases Questions!