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 3851 for branches


Ignore:
Timestamp:
2016-05-28T13:10:29-07:00 (8 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3830 r3851  
    372372(defun subtract (minuend  &rest subtrahends)
    373373  "Non-destructively subtract MINUEND and SUBTRAHENDS."
    374   (subtract-from (copy-instance minuend) (reduce #'add subtrahends)))
     374  (cond ((endp subtrahends) (unary-minus minuend))
     375        (t (subtract-from (copy-instance minuend) (reduce #'add subtrahends)))))
    375376
    376377(defmethod left-tensor-product-by ((self poly) (other monom))
Note: See TracChangeset for help on using the changeset viewer.