Question: // Use Poly interface and QPoly to establish equality of two polynomials p1(x) = 5x^2 + 3x - 1X^0 p2(x) = x^2 - 5x +
// Use "Poly" interface and "QPoly" to establish equality of two polynomials p1(x) = 5x^2 + 3x - 1X^0 p2(x) = x^2 - 5x + 10X^0 array-p1 = {-1, 3, 5} array-p2 = {10, -5, 1} p1.equals(p2); How can you write the equals method ?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
