# Assignment 8

For this assignment you will write some Matlab functions.

• The first is a function that evaluates your name function, as described in assignments 6 and 7, at any point $x$ in the interval [-1,7]. That function will take exactly one argument and has one output value.
• The second is a Matlab function that evaluates a midpoint rule approximation to the integral of any function you specify, over an interval you specify. This takes four arguments: a handle for the function to be integrated, the left endpoint, the right endpoint, and the number of subintervals to be used. In other words, to integrate a function you called name, over the interval [0,3], you might type the Matlab command: myMidpointRule(name,0,3,100).
No 'while' loops are permitted on this assignment! You may use all the 'for' loops you want.

The instructor will evaluate your work partially by running your integration function on your name function. Make sure that works and gives the correct answer.

The assignment is turned in when the two .m files containing the function are received as attachments to an email message in the instructor's inbox. The assignment is worth 40 points, and is due at 9AM on Tuesday, 30 October.

Assignment C is posted.

The test solution is available.

Department of Mathematics, PO Box 643113, Neill Hall 103, Washington State University, Pullman WA 99164-3113, 509-335-3926, Contact Us