next up previous contents
Next: The Complex Class: MYCOMPLEX Up: Building Polynomials: The FLOAT_POLY Previous: Application Code:

Exercises:

1.
By adding appropriate prints, trace carefully all of the constructor/ destructor chains for various polynomial classes.
2.
Design a vector of polynomials class.
3.
Design a matrix of polynomials class and an associated matrix applications class.
4.
Redesign our polynomial class to remove all inheritance.
5.
Redesign our polynomial class to remove all overloaded operators. Make sure you redesign the iterators also.
6.
Use our polynomial class for doubles to design a class for spline fitting. Note this is somewhat sophisticated programming as we are beginning to use many objects such as vectors, matrices, matrix applications and so forth jointly. Use this class to build spline models of your favorite thing.
7.
Design a polynomial fraction class; ie the numerator is a polynomial and the denominator is a polynomial.
8.
Use the polynomial fraction class to implement a Nonuniform Rational B-Spline class (NURBS) for modeling data. Again, this is a sophisticated effort.


Jim Peterson
1999-04-22