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


Ignore:
Timestamp:
2016-05-27T22:42:46-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3803 r3804  
    354354  self)
    355355
    356 (defun add-2 (object1 object2)
    357   "Non-destructively add POLY1 by POLY2."
    358   (add-to (copy-instance object1) (copy-instance object2)))
     356(defgeneric add-2 (object1 object2)
     357  (:documentation "Non-destructively add OBJECT1 to OBJECT2.")
     358  (:method ((object1 poly) (object2 poly))
     359    (add-to (copy-instance object1) (copy-instance object2))))
    359360
    360361(defun add (&rest summands)
Note: See TracChangeset for help on using the changeset viewer.