Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help solve all parts. By hand for 22.1 and using MatLab for 22.2 and 22.3 22.1 Using formulas (22.1 and 22.2), for the integral

Please help solve all parts. By hand for 22.1 and using MatLab for 22.2 and 22.3 image text in transcribed
22.1 Using formulas (22.1 and 22.2), for the integral 12xdx calculate M4 and S4 (by hand, but use a calculator and a lot of digits). Find the percentage error of these approximations, using the exact value. Compare with exercise 211 . 22.2 Write a well-commented MatLaB function program mymidpoint that calculates the midpoint rule approximation for f on the interval [a,b] with n subintervals. The inputs should be f,a,b and n. Use your program on the integral 12xdx to obtain M4 and M100. Compare these with exercise 22 1] and the true value of the integral. 22.3 Write a well-commented MATLAB function program mysimpson that calculates the Simpson's rule approximation for f on the interval [a,b] with n subintervals. It should call the program mysimpweights to produce the coefficients. Use your program on the integral 12xdx to obtain S4 and S100. Compare these with exercise 2211 exercise [222] and the true value of the integral

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

a sin(2x) x Let f(x)=2x+1 In(be)

Answered: 1 week ago

Question

e. What are notable achievements of the group?

Answered: 1 week ago