NOTES FOR APRIL 19-21, 2017 --------------------------- How might we encode polynomials in Python? See Pages 272-275 in the Companion For example: f(X) = 4X^5 - 3X^4 + 2X^3 + 7X - 6 Possibility #1: [[4,5], [-3,4], [2,3], [7,1], [-6,0]] Possibility #2: {4:5, -3:4, 2:3, 7:1, -6,0} Possibility #3: [-6, 7, 0, 2, -3, 4] How, then do we do the following things? 0: Normalize a polynomial (make sure upper coefficients aren't 0) 1: Make a string from a polynomial 2: Add/Subtract two polynomials 3: Multiply two polynomials 4: Divide one polynomial by another (ugly) 5: Differentiate a polynomial 6: Integrate a polynomial 7: Evaluate a polynomial at a particular value of X