 polyops.txt     ?& 8"?&B @	p)C)Hd'x*   ?&)TEXTttxt   @        L                         Hi, and thanks for actually downloading my programs! If you have any comments or suggestions about them, please let me know at csrstka@earthlink.net.

This package consists of two programs, although I may incorporate them both into one program sometime if I feel the need to do so. The programs are fairly straightforward, with one exception; your polynomials must be entered as lists, in descending order of x. For example, to enter the polynomial 3X^5 - 8X^4 - 4X^3 + 38X^2 - 9X - 35, one would enter {3,-8,-4,38,-9,-35}.

The POLYMULT program multiplies any two polynomials that have positive integral exponents. Using it is simple; all one must do is enter two polynomials in list form and it gives you the product in list form. (I may change this if people request it.)

For example, to multiply (X^4 + 3X^3 + 5X^2 - 2X + 6) by (3X^3 - 7X^2 + 2):

prgmPOLYMULT
ENTER AS LIST
?{1,3,5,-2,6}
?{3,-7,0,2}
{3 2 -6 -39 38 -32 -4 12}

As you can see, the product is 3X^7 + 2X^6 - 6X^5 - 39X^4 + 38X^3 - 32X^2 - 4X + 12.

The division program works the same. Enter your dividend, then the divisor. The program returns the quotient and the remainder.

For example, to divide 3X^7 + 2X^6 - 6X^5 - 39X^4 + 38X^3 - 32X^2 - 4X + 12
by 3X^3 - 7X^2 + 2 (the opposite of the previous example):

prgmPOLYDIV
ENTER AS LIST
?{3,2,-6,-39,38,-32,-4,12}
?{3,-7,0,2}

{1 3 5 -2 6}
{0 0 0 0 0 0 0 0}

The program returns the quotient, X^4 + 3X^3 + 5X^2 - 2X + 6, and the remainder, 0.

Well, that's about it! Hope you enjoy my programs!


Charles J. Srstka
csrstka@earthlink.net                                                                                                                    2 7ff 8ff 9ffff :ff33polyops.txt  TEXTttxt         TEXTttxt                             L E  ff F  33 G     H I J Kff L33 M   N O P̙ Qff R33 S   T                               29    2  styl   
     : h                                                    