Changeset 3621 for branches/f4grobner
- Timestamp:
- 2015-09-05T20:14:38-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r3620 r3621 85 85 self)) 86 86 87 (defgeneric poly-insert-term (self monom coeff)88 (:documentation "Insert a term with monomial MONOM and coefficient COEFF89 before all otherterms. 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)) 91 91 (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)) 95 95 self)) 96 96
Note:
See TracChangeset
for help on using the changeset viewer.