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


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3406 r3407  
    326326                 (change-class (copy-instance POLY2))))
    327327
     328(defmethod r+ ((poly1 monom) poly2)
     329  "Non-destructively add POLY1 by POLY2."
     330  (add-to (change-class (copy-instance POLY1) 'poly)
     331          (change-class (copy-instance POLY2) 'poly)))
     332
     333(defmethod r- ((poly1 monom) poly2)
     334  "Non-destructively subtract POLY1 and POLY2."
     335  (subtract-from (change-class (copy-instance POLY1)' poly)
     336                 (change-class (copy-instance POLY2))))
     337
    328338(defmethod r* ((poly1 poly) (poly2 poly))
    329339  "Non-destructively multiply POLY1 by POLY2."
Note: See TracChangeset for help on using the changeset viewer.