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


Ignore:
Timestamp:
2015-09-06T06:37:59-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3693 r3694  
    467467  (scalar-divide-by object (poly-content object)))
    468468
     469(defun saturation-extension (f plist
     470                             &aux
     471                               (k (length plist))
     472                               (d (monom-dimension (poly-lm (car plist)))))
     473  "Calculate [F', U1*P1-1,U2*P2-1,...,UK*PK-1], where F' has first K
     474variables U1,U2,...,UK inserted as first K variables and
     475PLIST=[P1,P2,...,PK]."
     476  (setf f (poly-list-add-variables f k)
     477        plist (standard-extension-1 plist))
     478  (nconc f plist))
     479
     480
     481(defun polysaturation-extension (f plist
     482                                 &aux (k (length plist))
     483                                   (d (+ k (length (poly-lm (car plist))))))
     484  "Calculate [F', U1*P1+U2*P2+...+UK*PK-1], where PLIST=[P1,P2,...,PK]."
     485  (setf f (poly-list-add-variables f k)
     486        plist (apply #'poly-append (poly-standard-extension plist))
     487        (cdr (last (poly-termlist plist))) (list (make-term (make-monom d :initial-element 0)
     488                                                            (funcall (ring-uminus ring) (funcall (ring-unit ring))))))
     489  (append f (list plist)))
     490
     491
    469492(defun saturation-extension-1 (f p)
    470493  "Given family of polynomials F and a polynomial P, calculate [F', U*P-1], where
Note: See TracChangeset for help on using the changeset viewer.