Changeset 3500
- Timestamp:
- 2015-09-05T11:04:12-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r3499 r3500 112 112 (eq (poly-term-order self) (poly-term-order other)))) 113 113 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)) 120 121 121 122 (defmethod append-item ((self poly) (item term))
Note:
See TracChangeset
for help on using the changeset viewer.