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 1238 for branches


Ignore:
Timestamp:
2015-06-11T14:56:03-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/division.lisp

    r1237 r1238  
    6868                               (ring (ro-ring ring-and-order))
    6969                               (p-zero (make-poly-zero)))
    70   "Loop invariant: c*f0=sum ai*fi+r+f, where f0 is the initial value of f"
     70  "Check loop invariant of division algorithms, when we divide a
     71polynomial F by the list of polynomials FL. The invariant is the
     72identity C*F0=SUM AI*FI+R+F, where F0 is the initial value of F, A is
     73the list of partial quotients, R is the intermediate value of the
     74remainder, and F is the intermediate value which eventually becomes
     750."
    7176  (flet ((p-add (p q) (poly-add ring-and-order p q))
    7277         (p-sub (p q) (poly-sub ring-and-order p q))
     
    8085                    f))))))
    8186 
    82 
    8387
    8488(defun poly-pseudo-divide (ring-and-order f fl
     
    9498the quotients is initialized to default."
    9599  (declare (type poly f) (list fl))
    96   ;; Loop invariant: c*f0=sum ai*fi+r+f, where f0 is the initial value of f
     100  ;; Loop invariant: c*f0=sum ai*fi+r+p, where f0 is the initial value of f
    97101  (do ((r (make-poly-zero))
    98102       (c (funcall (ring-unit ring)))
Note: See TracChangeset for help on using the changeset viewer.