Java: Polynomial Calculator
The main algorithm behind this calculator comes from Prof. Evangel Quiwa's Data Structures book. I do not guarantee, however, that I kept myself faithful to his discussion of the algorithm. My implementation most probably differs from Prof. Quiwa's discussion because (a) I did not grasp the concept fully or (b) my modification is better for a Java implementation. My code handles the following operations on polynomials: addition, subtraction, multiplication (WIP), differentiation, and integration (WIP).
Note that I am not handling division as division is not closed under the set of polynomials. Division can produce terms with negative exponents.
I haven't had the time to test this thoroughly. Bugs are possible but this should work for the most part. I settled
for some constraints in this implementation, mostly having to do with int upper bounds and such like. I noted these
constraints in the comments of Polynomial.java .