close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 1270


Ignore:
Timestamp:
2015-06-11T19:47:09-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/division.lisp

    r1269 r1270  
    7878the polynomial R have their terms in reversed order. Hence, before
    7979the arithmetic is performed, we need to fix the order of terms"
    80   (format t "Running loop-invariant check now.~%")
    8180  (format t "C=~A~%F=~A~%A=~A~%FL=~A~%R=~A~%P=~A~%" c f a fl r p)
    8281  (flet ((p-add (x y) (poly-add ring-and-order x y))
     
    8988              (scalar-times-poly ring c f)
    9089              (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))
    9492      succeeded-p)))
    9593 
Note: See TracChangeset for help on using the changeset viewer.