- Timestamp:
- 2016-06-04T11:57:38-07:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/division.lisp
r4200 r4206 180 180 ;; method would be to test NORMAL-FORM using POLY-PSEUDO-DIVIDE. 181 181 ;; 182 (defun normal-form (f fl 183 &optional 184 (top-reduction-only $poly_top_reduction_only)) 182 (defun normal-form (f fl &optional (top-reduction-only $poly_top_reduction_only)) 185 183 #+grobner-check(when (null fl) (warn "normal-form: empty divisor list.")) 186 184 (do ((r (make-zero-for f)) 187 (c 1)185 (c (make-unit-for (leading-coefficient f))) 188 186 (division-count 0)) 189 187 ((or (universal-zerop f) … … 194 192 (when (universal-zerop r) 195 193 (debug-cgb " ---> 0"))) 196 (setf (poly-termlist f) (nreconc (poly-termlist r) (poly-termlist f)))194 (setf f (add-to f r)) 197 195 (values f c division-count)) 198 196 (declare (fixnum division-count)
Note:
See TracChangeset
for help on using the changeset viewer.