Polynomials are quite important because they are often used in approximating functions, which are determined by
experimental measurements in the absence on any theory on the nature of the function.
A polynomial is a special mathematical function whose value is computed as follows:
P(x) = ∑^{n}_{k} a_{k}x^{k}

In this equation, n is called the degree of the polynomial. A secondorder polynomial:
has degree 2. It represents a parabola crossing the xaxis at points 1 and 2 and having a minimum at x = 2/3. This
secondorder polynomial, is represented by the array {2, 3, 1}.
In the equations above, the numbers a_{0},...,s_{n}
are called the coefficients of the polynomial. Thus, a polynomial can be represented by the array
{a_{0},...,a_{n}}. For example, the secondorder polynomial described above, is
represented by the array {2, 3, 1}.
The best approach to evaluate a polynomial consists of factoring out x before the evaluation of
each term, such as:
(x) = a_{0} + x {a_{1} + x[a_{2} + x(a_{3}]}

Evaluating this expression requires only multiplications, instead of raising the variable to an integral power at each term as
shown in the sum before. The resulting algorithm is quite straightforward to implement.
on polynomial derivatives...
The derivative of a polynomial with n coefficients is another polynomial, with n  1 coefficients derived
from the coefficients of the original polynomial, as follows:
a'_{k} = (k + 1)a_{k + 1} for k = 0,...,n1.

on polynomial integrals...
The integral of a polynomial with n coefficients is another polynomial, with n + 1
coefficients derived from the coefficients of the original polynomial, as follows:
a^{} = a_{k1} / k for k = 1,...,n+1.

Adding or subtracting two polynomials yields a polynomial whose degree is the maximum of the degrees of the two polynomials.
Multiplying two polynomials yields a polynomial whose degree is the product of the degrees of the two polynomials.
IMPLEMENTATION
Being a special case of a function a class KmpPolynomial was created to hold related methods for execution.
The code first creates an instance of the class by giving the coefficients of the polynomial.
Code for derivative, integral and multiplication are included as examples of polynomial computation.

Script for Polynomial Evaluation
The following code provides the set up to execute the polynomial. It is presented as a window class in Smalltalk
(shown below) and executed on a Smalltalk workspace window. The RESULTS follow and are shown on a
Smalltalk transcript window.

RESULTS
