Question: please help me with is assignment The lanuage is Java Exercise 1. Simulate the revised evaluation algorithm for the polynomial p( x ) = 4x5
Exercise 1. Simulate the revised evaluation algorithm for the polynomial p( x ) = 4x5 + 3x4 - 2x as a list to find p(-2) Exercise 2. Design a power Test() method, A method called power Test() checks whether the efficient computation of a random polynomial with a particular number of terms raised to the n-th power equals the computation of p" with a for loop. Use the following signature. /** Test whether the efficient computation of a random polynomial with a particular number of terms raised to pwr equals the computation with a for loop. @param terms an int for the number of terms in a random polynomial @param n a non negative int for p(x)^n */ public void powerTest( int terms, int n) Exercise 1. Simulate the revised evaluation algorithm for the polynomial p( x ) = 4x5 + 3x4 - 2x as a list to find p(-2) Exercise 2. Design a power Test() method, A method called power Test() checks whether the efficient computation of a random polynomial with a particular number of terms raised to the n-th power equals the computation of p" with a for loop. Use the following signature. /** Test whether the efficient computation of a random polynomial with a particular number of terms raised to pwr equals the computation with a for loop. @param terms an int for the number of terms in a random polynomial @param n a non negative int for p(x)^n */ public void powerTest( int terms, int n)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
