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 1252 for branches/f4grobner


Ignore:
Timestamp:
2015-06-11T15:36:13-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/division.lisp

    r1248 r1252  
    7777         (p-sub (x y) (poly-sub ring-and-order x y))
    7878         (p-mul (x y) (poly-mul ring-and-order x y)))
    79     (poly-zerop
    80      (p-sub
    81       (scalar-times-poly ring c f)
    82       (reduce #'p-add
    83               (list (inner-product a fl p-add p-mul p-zero)
    84                     r
    85                     p))))))
     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)))))))
    8684 
    8785
     
    114112       (values a r c division-count))
    115113    (declare (fixnum division-count))
     114    ;; Check the loop invariant here
     115    (check-loop-invariant ring-and-order c f a fl r p)
    116116    (do ((fl fl (rest fl))              ;scan list of divisors
    117117         (b a (rest b)))
     
    137137                (push (make-term m c2) (poly-termlist (car b))))
    138138              t))))
    139       ;; Check the loop invariant here
    140       (check-loop-invariant ring-and-order c f a fl r p)
    141139      )))
    142140
Note: See TracChangeset for help on using the changeset viewer.