close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Ignore:
Timestamp:
2015-06-20T21:45:34-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r2801 r2802  
    217217    ;; If p= p0+p1 and q=q0+q1 then p*q=p0*q0+p0*q1+p1*q
    218218    ((endp (cdr p))
    219      (multiply-term-by-termlist (car p) q)
     219     (multiply-term-by-termlist-dropping-zeros (car p) q)
    220220    ((endp (cdr q))
    221      (multiply-termlist-by-term p (car q))
    222     (t
    223      (let ((head (multiply-terms (car p) (car q)))
    224            (tail (add-termlists
    225                   (multiply-term-by-termlist-dropping-zeros (car p) (cdr q))
    226                   (multiply-termlists (cdr p) q)
    227                   order-fn)))
    228        (nconc head tail)))))))
     221     (multiply-term-by-termlist-dropping-zeros (car q) p t)
     222     (t
     223      (nconc (multiply-terms (car p) (car q))
     224             (tail (add-termlists
     225                    (multiply-term-by-termlist-dropping-zeros (car p) (cdr q))
     226                    (multiply-termlists (cdr p) q)
     227                    order-fn))))))))
     228
    229229
    230230#|
Note: See TracChangeset for help on using the changeset viewer.