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.

Changeset 4331 for branches/f4grobner


Ignore:
Timestamp:
2016-06-05T19:03:33-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r4329 r4331  
    249249  (multiply-by other self))
    250250
     251#|
    251252(defmethod multiply-by ((self term) (other poly))
    252253  "Multiply a term SELF by polynomial OTHER."
    253254  (multiply-by other self))
     255|#
    254256
    255257(defmacro fast-add/subtract (p q order-fn add/subtract-fn uminus-fn)
     
    427429            order-fn)))))
    428430
    429 (defmethod multiply-by ((self poly) (other poly))
    430   (change-term-order other self)
     431(defmethod multiply-by ((self poly) (other poly) &aux (other-copy (copy-instance other)))
     432  (change-term-order other-copy self)
    431433  (setf (poly-termlist self) (multiply-termlists (poly-termlist self)
    432                                                  (poly-termlist other)
     434                                                 (poly-termlist other-copy)
    433435                                                 (poly-term-order self)))
    434436  self)
Note: See TracChangeset for help on using the changeset viewer.