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 3426 for branches/f4grobner


Ignore:
Timestamp:
2015-08-27T17:32:37-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3425 r3426  
    321321          (change-class (copy-instance POLY2) 'poly)))
    322322
    323 (defmethod r- ((poly1 term) poly2)
    324   "Non-destructively subtract POLY1 and POLY2."
     323(defmethod r- ((minuend term) &rest subtrahends)
     324  "Non-destructively subtract MINUEND and SUBTRAHENDS."
    325325  (subtract-from (change-class (copy-instance POLY1) 'poly)
    326                  (change-class (copy-instance POLY2) 'poly)))
     326                 (reduce #'r+ subtrahends)))
    327327
    328328(defmethod r+ ((poly1 monom) poly2)
     
    334334  "Non-destructively subtract MINUEND and SUBTRAHENDS."
    335335  (subtract-from (change-class (copy-instance POLY1) 'poly)
    336                  (apply #'r+ subtrahends)))
     336                 (reduce #'r+ subtrahends)))
    337337
    338338(defmethod r* ((poly1 poly) (poly2 poly))
Note: See TracChangeset for help on using the changeset viewer.