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 3064


Ignore:
Timestamp:
2015-06-21T18:08:06-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3063 r3064  
    301301        plist))
    302302
    303 #|
    304 
    305 (defun saturation-extension (ring f plist
     303(defun saturation-extension (plist
    306304                             &aux
    307                                (k (length plist))
    308                                (d (monom-dimension (poly-lm (car plist))))
    309                                f-x plist-x)
     305                               (plist (poly-saturation-extension plist))
     306                               (dim (poly-dimension (car plist))))
    310307  "Calculate [F, U1*P1-1,U2*P2-1,...,UK*PK-1], where PLIST=[P1,P2,...,PK]."
    311   (declare (type ring ring))
    312   (setf f-x (poly-list-add-variables f k)
    313         plist-x (mapcar #'(lambda (x)
    314                             (setf (poly-termlist x)
    315                                   (nconc (poly-termlist x)
    316                                          (list (make-term :monom (make-monom :dimension d)
    317                                                           :coeff (funcall (ring-uminus ring)
    318                                                                           (funcall (ring-unit ring)))))))
    319                             x)
    320                         (poly-standard-extension plist)))
    321   (append f-x plist-x))
     308  (flet ((subtract-1 (p)
     309           (insert-item (make-instance 'term :coeff -1 :dimension dim))))
     310    (mapc #'subtract-1 plist))
     311  (nconc F plist))
    322312
    323313
Note: See TracChangeset for help on using the changeset viewer.