Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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.0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started