PMUL performs polynomial multiplication.  Only 170 bytes and an ASCII
listing is included.


PMUL performs polynomial multiplication for polynomials of any degree.
The coefficients of each polynomial are entered in list form.  For
example the polynomial:

       X^4 + 8X^3 - X + 1

is represented by the list  { 1, 8, 0, -1, 1 }.   Note well that a
zero is in place of the missing "X^2" element.

Running PMUL:
The program prompts you for two lists (L1 and L2).  One
list is the multiplicand and the second is the multiplier.
The first prompt is for L1.  Enter the list of coefficients for the
first polynomial and press ENTER.  Now enter the list of the coeffecients
for the second polynomial and again press ENTER.  What returns is the
coefficient product in list form.

Example:
Suppose you want to multiply the polynomials  X^3 - 4X^2 - 3X + 25
and 10X^3 + 5X  .

Press PMUL and wait for the  "L1?" prompt.  Enter the list
{ 1, -4, -3, 25 } and press ENTER.

The second prompt, "L2?", will appear.  Enter the list  { 10, 0, 5, 0 }
and press ENTER.

The product is the list  { 10, -40, -25, 230, -15, 125, 0 }
representing the polynomial

       10X^6 - 40X^5 - 25X^4 + 230X^3 - 15X^2 + 125X + 0

Note that if the list is too large to view on the screen, it can be
scrolled to the left using the cursor keys.

Variables used in the PMUL program:

        Lists: L1  one of the polynomial coefficient lists.
               L2  the other poynomial coefficient list.
               DL  a "dummy" list used for scratch work.
               ML  the product list.

        Reals: S1  the size of L1.
               S2  the size of L2.
               I,J loop counters.


Final note:
This program can be used with any other program.  If used, please give
credit where credit is due.  Thanks.

Richard Homard

