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


Ignore:
Timestamp:
2016-06-15T18:33:31-07:00 (8 years ago)
Author:
Marek Rychlik
Message:

Summary: Fixed order of terms in the remainder returned from poly-pseudo-divide

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/division.lisp

    r4463 r4483  
    8787       (debug-cgb "~&~3T~d reduction~:p" division-count)
    8888       (when (null r) (debug-cgb " ---> 0"))
    89        (values a (make-instance 'poly :termlist r) c division-count))
     89       (values a (make-instance 'poly :termlist (nreverse r)) c division-count))
    9090    (declare (fixnum division-count))
    9191    ;; Check the loop invariant here
     
    224224        (stat2
    225225         (every #'universal-zerop
    226                 (makelist (normal-form (copy-instance (elt f i)) g nil)
     226                (makelist (normal-form (copy-instance (elt f i)) (mapcar #'copy-instance g) nil)
    227227                          (i 0 (1- (length f)))))))
    228228    (unless stat1
Note: See TracChangeset for help on using the changeset viewer.