Changeset 1270 for branches/f4grobner
- Timestamp:
- 2015-06-11T19:47:09-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/division.lisp
r1269 r1270 78 78 the polynomial R have their terms in reversed order. Hence, before 79 79 the arithmetic is performed, we need to fix the order of terms" 80 (format t "Running loop-invariant check now.~%")81 80 (format t "C=~A~%F=~A~%A=~A~%FL=~A~%R=~A~%P=~A~%" c f a fl r p) 82 81 (flet ((p-add (x y) (poly-add ring-and-order x y)) … … 89 88 (scalar-times-poly ring c f) 90 89 (reduce #'p-add (list prod r p)))))) 91 (if succeeded-p 92 (format t "### Success ###~%") 93 (error "####### Check failed #####")) 90 (unless succeeded-p 91 (error "Division failed: C=~A~%F=~A~%A=~A~%FL=~A~%R=~A~%P=~A~%" c f a fl r p)) 94 92 succeeded-p))) 95 93
Note:
See TracChangeset
for help on using the changeset viewer.