link polystuf
May 23, 1994; Erik Eid
This file is in the public domain.
These procedures are for creating and performing operations on single- variable polynomials (like ax^2 + bx + c). poly (c1, e1, c2, e2, ...) - creates a polynomial from the parameters given as coefficient-exponent pairs: c1x^e1 + c2x^e2 + ... is_zero (n) - determines if n = 0 is_zero_poly (p) - determines if a given polynomial is 0x^0 poly_add (p1, p2) - returns the sum of two polynomials poly_sub (p1, p2) - returns the difference of p1 - p2 poly_mul (p1, p2) - returns the product of two polynomials poly_eval (p, x) - finds the value of polynomial p when evaluated at the given x. term2string (c, e) - converts one coefficient-exponent pair into a string. poly_string (p) - returns the string representation of an entire polynomial.