Question: Implement a class Polynomial that describes a polynomial such as . Store a polynomial as a linked list of terms. A term contains the coefficient
Implement a class Polynomial that describes a polynomial such as . Store a polynomial as a linked list of terms. A term contains the coefficient and the power of x. For example, you would store p(x) as
(5, 10), (9, 7), (-1, 1), (-10, 0)
Supply methods to add, multiply, and print polynomials, and to compute the derivative of a polynomial.
Show the code and the output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
