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


Ignore:
Timestamp:
2015-08-27T12:53:00-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3404 r3405  
    308308  self)
    309309
    310 (defmethod r+ ((poly1 poly) (poly2 poly))
     310(defmethod r+ ((poly1 poly) poly2)
    311311  "Non-destructively add POLY1 by POLY2."
    312   (add-to (copy-instance POLY1) (copy-instance POLY2)))
    313 
    314 (defmethod r- ((poly1 poly) (poly2 poly))
     312  (add-to (copy-instance POLY1) (change-class (copy-instance POLY2) 'poly)))
     313
     314(defmethod r- ((poly1 poly) poly2)
    315315  "Non-destructively subtract POLY1 and POLY2."
    316316  (subtract-from (copy-instance POLY1) (copy-instance POLY2)))
Note: See TracChangeset for help on using the changeset viewer.