Problem Set 8 Due: 4:30PM, Friday April 26, 2002 Problem 1. Polynomials.

advertisement
Problem Set 8
Due: 4:30PM, Friday April 26, 2002
Problem 1. Polynomials.
Background
As part of an engineering analysis program that you are writing, you must manipulate many
polynomials of high degree.For example, we may have:
f(x)=9.63x32 + 0.534 x7 - 2.42 x4+ 8.01
We will represent the polynomial as a linked list. Each node in the list will have an integer
degree, a double coefficient and a reference to the next term. The final node will have a null
reference to indicate the end of the list.
Download