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 3621


Ignore:
Timestamp:
2015-09-05T20:14:38-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3620 r3621  
    8585    self))
    8686
    87 (defgeneric poly-insert-term (self monom coeff)
    88   (:documentation "Insert a term with monomial MONOM and coefficient COEFF
    89 before all other terms. Order is not enforced.")
    90   (:method ((self poly) (monom monom) coeff)
     87(defgeneric poly-insert-term (self term)
     88  (:documentation "Insert a term into SELF before all other
     89  terms. Order is not enforced.")
     90  (:method ((self poly) (term term))
    9191    (cond ((null (poly-dimension self))
    92            (setf (poly-dimension self) (monom-dimension monom)))
    93           (t (assert (= (poly-dimension self) (monom-dimension monom)))))
    94     (push (cons monom coeff) (poly-termlist self))
     92           (setf (poly-dimension self) (monom-dimension term)))
     93          (t (assert (= (poly-dimension self) (monom-dimension term)))))
     94    (push term (poly-termlist self))
    9595    self))
    9696
Note: See TracChangeset for help on using the changeset viewer.