Summary
###########################################################################
File: polystuf.icn
Subject: Procedures for manipulating polynomials
Author: Erik Eid
Date: May 23, 1994
###########################################################################
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.
###########################################################################
Procedures:
is_zero, is_zero_poly, poly, poly_add, poly_eval, poly_mul, poly_string, poly_sub, term2string
This file is part of the (main) package.
Source code.
is_zero(n)
is_zero_poly(p)
poly(terms)
poly_add(p1, p2)
poly_eval(p, x)
poly_mul(p1, p2)
poly_string(p)
poly_sub(p1, p2)
term2string(c, e)
This page produced by UniDoc on 2021/04/15 @ 23:59:54.