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 3500


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3499 r3500  
    112112       (eq (poly-term-order self) (poly-term-order other))))
    113113
    114 (defmethod poly-insert-term ((self poly) (item term))
    115   (cond ((null (poly-dimension self))
    116          (setf (poly-dimension self) (monom-dimension item)))
    117         (t (assert (= (poly-dimension self) (monom-dimension item)))))
    118   (push item (poly-termlist self))
    119   self)
     114(defgeneric poly-insert-term (self monom coeff)
     115  (:method ((self poly) (monom monom) coeff)
     116    (cond ((null (poly-dimension self))
     117           (setf (poly-dimension self) (monom-dimension monom)))
     118          (t (assert (= (poly-dimension self) (monom-dimension monom)))))
     119    (push (cons monom coeff) (poly-termlist self))
     120    self))
    120121
    121122(defmethod append-item ((self poly) (item term))
Note: See TracChangeset for help on using the changeset viewer.