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
Get step-by-step solutions from verified subject matter experts
