Changeset 2539
- Timestamp:
- 2015-06-19T15:32:52-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r2538 r2539 108 108 (defmethod add-to ((self poly) (other poly)) 109 109 (macrolet ((lt (termlist) `(car ,termlist)) 110 (lc (termlist) `( term-coeff (lt,termlist))))110 (lc (termlist) `(r-coeff (car ,termlist)))) 111 111 (with-slots ((termlist1 termlist)) 112 112 self … … 119 119 ;; Copy all initial terms of q greater than (lt p) into p 120 120 (do ((r q (cdr q))) 121 ((lex> (l t r) (ltp)))121 ((lex> (lm r) (lm p))) 122 122 (push (lt r) p)) 123 123 ;; Now compare leading terms of p and q
Note:
See TracChangeset
for help on using the changeset viewer.