Data Structures and Algorithms
with Object-Oriented Design Patterns in Java
.
.
Implement a method that computes the value of a polynomial,
say p(x),
for a given value of x.
Hint: Use a visitor that visits all the terms in the polynomial
and accumulates the result. ![]()
Write a method to multiply a Polynomial
by a Term and use the polynomial addition operator
defined in Program
.
.
Copyright © 1998 by Bruno R. Preiss, P.Eng. All rights reserved.