- Timestamp:
- 2015-06-22T20:41:50-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r3253 r3254 89 89 90 90 (defmethod insert-item ((self poly) (item term)) 91 (assert (= (monom-dimension item) (poly-dimension self))) 91 (cond ((null (poly-dimension self)) 92 (setf (poly-dimension self) (monom-dimension other))) 93 (t (assert (= (monom-dimension item) (poly-dimension self))))) 92 94 (push item (poly-termlist self)) 93 95 self) 94 96 95 97 (defmethod append-item ((self poly) (item term)) 96 (assert (= (monom-dimension item) (poly-dimension self))) 98 (cond ((null (poly-dimension self)) 99 (setf (poly-dimension self) (monom-dimension other))) 100 (t (assert (= (monom-dimension item) (poly-dimension self))))) 97 101 (setf (cdr (last (poly-termlist self))) (list item)) 98 102 self)
Note:
See TracChangeset
for help on using the changeset viewer.