Department of Mathematics

Math 300: Mathematical Computing

Assignment 6

You must write two Matlab functions. The first takes one argument x, and returns the value of the function p(x) = x4 - 3x2 + 2x + 1. Note that the function should handle vector arguments for x, evaluating the function for each entry in x. The function should be called quartic.

The second function takes one argument x, but evaluates a function that is zero when x < 0, and is one otherwise. It should be called unitstep. Again, x might be a vector. The assignment is worth 50 points, and it is turned in when the two .m files appear as attachments to a message in the instructor's email inbox. It is due by 9:30AM on Thursday, 25 October.


Welcome to Math 300 for summer, 2013.






Department of Mathematics, PO Box 643113, Neill Hall 103, Washington State University, Pullman WA 99164-3113, 509-335-3926, Contact Us
Copyright © 1996-2013 Kevin Cooper