1. For this project, you must first implement the Polynomial class from the Chapter 3 Programming Project 8 on page 170. Add a new method to the class with four parameters: a new polynomial f and three double numbers x, z, and epsilon. The precondition requires that epsilon is positive and f(x) <=>
The method searches for a number y between x and z, where f(y) is zero. Such a number is called a root of the polynomial. The method’s return value might not be an exact root, but the difference between the return value and a real root should be no more than epsilon. The algorithm is a binary search of the numbers between x and z.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here