Question: Write a function that evaluates the polynomial at the specified point x : double evalPoly(double poly[], int degree, double x); The first two parameters are

Write a function that evaluates the polynomial at the specified point x:

double evalPoly(double poly[], int degree, double x); 

The first two parameters are the array of coefficients and the degree of the polynomial. And the third parameter is the value of the variable x, where the polynomial has to be evaluated. Please feel free to use the pow function from the mathematics library (include ).

(Write a simple main function as well to test your function eval, and the write a function to print it.)

//c++ recursion

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!