summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorbiouman <biouman>2001-04-30 00:04:23 +0000
committerbiouman <biouman>2001-04-30 00:04:23 +0000
commita578580b607c8cadf22b457d51431042e3896271 (patch)
tree301581a32c1a9cb4022f7f966abe0f06f7fede50 /lib
parentd700a9b0e62e1a18f26733d56a760c5cccc0af3d (diff)
*** empty log message ***
Diffstat (limited to 'lib')
-rw-r--r--lib/polynom.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/polynom.c b/lib/polynom.c
index 2514445..4c789dd 100644
--- a/lib/polynom.c
+++ b/lib/polynom.c
@@ -192,9 +192,11 @@ polynome ply_soustraction(polynome poly1, polynome poly2)
polynome ply_multiplication(polynome poly1, polynome poly2)
{ /* multiplication de deux polynomes */
- polynome temp = NULL, t, resultat = NULL, r, tempresult = NULL;
+ polynome temp = NULL, t, resultat = NULL, r, tempresult = NULL, poly2init;
+ poly2init=poly2;
while (poly1) {
+ poly2=poly2init;
while (poly2) {
t =
ply_constr(rat_multiplication(poly1->coef, poly2->coef),