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


Ignore:
Timestamp:
2016-05-28T11:57:06-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3822 r3830  
    270270  (:documentation "Subtract OTHER from SELF.")
    271271  (:method ((self number) (other number))
    272     (- self other)))
     272    (- self other))
     273  (:method ((self poly) (other number))
     274    (subtract-from self (make-poly-constant (poly-dimension self) other))))
    273275
    274276(defmacro def-add/subtract-method (add/subtract-method-name
     
    529531  (:method ((self poly)) t)
    530532  (:method ((self t)) nil))
     533
     534(defmethod ->infix ((self poly) &optional vars)
     535  (cons '+ (mapcar #'(lambda (x) (->infix x vars))
     536                   (poly-termlist self))))
     537 
Note: See TracChangeset for help on using the changeset viewer.