Click the buttons to input polynomials and to perform manipulations of the polynomials on the stack. The graph display will update on the fly, graphing the top four elements of the stack. Submit your four favorite polynomial equations, in the RatPoly.unparse format, in the file problem4.txt . Then, edit the specification files into your implementation, and test your implementation. See the Specifications for the classes you will implement and those that are provided for you.
Hints See the problem set guidelines and advice .
The polynomial arithmetic functions are not difficult, but if you begin implementation without a specific plan, it is easy to get yourself into a terrible mess. For a non-graphical alternative method of running JUnit, use junit.textui.TestRunner instead of junit.swingui.TestRunner . Divison of polynomials over the rationals is similar to the long division that one learns in grade school. Unfortunately, our implementation had an error which broke the representation invariant stated at the top of the file. This bug might have caused the testParseSimple method of the RatPolyTest class to yield a failure.