Question: write method evaluate and returns the solution of the polynomial code start with: public static double evaluate( double x, int [] coefficient) { } anx+
write method evaluate and returns the solution of the polynomial 
![with: public static double evaluate(double x, int[] coefficient) { } anx+ an-1xn-1](https://s3.amazonaws.com/si.experts.images/answers/2024/09/66e0291ebf999_62266e0291e599ac.jpg)
code start with:
public static double evaluate(double x, int[] coefficient) {
}
anx+ an-1xn-1 + ... + a2x1 + 20 x input array input Polynomial representation evaluate returns 1.0 {0,1,2,3,4} 4x4+3x+2x+x+0 10.0 18.0 -5.0. 3.0 2.0 -3.0 2.0 {3,2,1} {3, -2, -1} {3,2,1} {3,2} {4,0,9} {10} {0,1} x2 + 2x + 3 -X2 - 2x + 3 x2 + 2x + 3 2x+3 9x2 + 4 10 X 7.0 40.0 10.0 2.0 10.0 10.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
