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


Ignore:
Timestamp:
2015-09-05T21:04:51-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3646 r3647  
    217217
    218218
     219(defgeneric add-to (self other)
     220  (:documentation "Add OTHER to SELF.")
     221  (:method ((self number) (other number))
     222    (+ self other)))
     223
     224(defgeneric subtract-from (self other)
     225  (:documentation "Subtract OTHER from SELF."))
     226
     227
    219228(defmacro def-add/subtract-method (add/subtract-method-name
    220229                                   uminus-method-name
    221230                                   &optional
    222231                                     (doc-string nil doc-string-supplied-p))
    223   "This macro avoids code duplication for two similar operations: POLY-ADD-TO and POLY-SUBTRACT-FROM."
     232  "This macro avoids code duplication for two similar operations: ADD-TO and SUBTRACT-FROM."
    224233  `(defmethod ,add/subtract-method-name ((self poly) (other poly))
    225234     ,@(when doc-string-supplied-p `(,doc-string))
Note: See TracChangeset for help on using the changeset viewer.