Question: Write a C program that includes a function named solve Poly (x) that computes the following polynomial at value x (a double): 3x^5 + 2x^4

Write a C program that includes a function named solve Poly (x) that computes the following polynomial at value x (a double): 3x^5 + 2x^4 - 5x^3 - x^2 + 7x - 6 Write a program that asks the user to enter a value for x, calls your solve Poly function to evaluate the polynomial passing it x, then displays the returned double value. Write a new function called solvePoly2 that is passed a double array of size 6 (that represents up to a 5^th degree polynomial) and a value for x and as before evaluates the polynomial at x. For example, the polynomial shown above would be represented like this: (i.e. the coefficient in the 0^th cell represents the x^0 coefficient, the coefficient in the 1^st cell represents the x^1 coefficient, etc.) Here is a second example: the array p here stores the polynomial 3x^3 - 2x + 4. Calling a function to compute the power of x raised to some value is a great help in writing this program; such a function is defined on page 363 in the notes or, if you prefer, you can use the function provided in the C libraries (via math. h)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
