Changeset 1257
- Timestamp:
- 2015-06-11T15:47:19-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/division.lisp
r1256 r1257 74 74 remainder, and P is the intermediate value which eventually becomes 75 75 0." 76 (format t "Running loop-invariant check now.~%") 77 (format t "C=~A~%F=~A~%A=~A~%FL=~A~%R=~A~%P=~A~%" c f a fl r p) 76 78 (flet ((p-add (x y) (poly-add ring-and-order x y)) 77 79 (p-sub (x y) (poly-sub ring-and-order x y)) 78 80 (p-mul (x y) (poly-mul ring-and-order x y))) 79 (let ((prod (inner-product a fl p-add p-mul p-zero))) 80 (poly-zerop 81 (p-sub 82 (scalar-times-poly ring c f) 83 (reduce #'p-add (list prod r p))))))) 81 (let* ((prod (inner-product a fl p-add p-mul p-zero)) 82 (succeeded-p 83 (poly-zerop 84 (p-sub 85 (scalar-times-poly ring c f) 86 (reduce #'p-add (list prod r p)))))) 87 (unless succeeded-p (warn "Check failed")) 88 succeeded-p))) 84 89 85 90
Note:
See TracChangeset
for help on using the changeset viewer.