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


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3405 r3406  
    316316  (subtract-from (copy-instance POLY1) (copy-instance POLY2)))
    317317
     318(defmethod r+ ((poly1 term) poly2)
     319  "Non-destructively add POLY1 by POLY2."
     320  (add-to (change-class (copy-instance POLY1) 'poly)
     321          (change-class (copy-instance POLY2) 'poly)))
     322
     323(defmethod r- ((poly1 term) poly2)
     324  "Non-destructively subtract POLY1 and POLY2."
     325  (subtract-from (change-class (copy-instance POLY1)' poly)
     326                 (change-class (copy-instance POLY2))))
     327
    318328(defmethod r* ((poly1 poly) (poly2 poly))
    319329  "Non-destructively multiply POLY1 by POLY2."
Note: See TracChangeset for help on using the changeset viewer.