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...


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.





Dec 05, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here