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


Ignore:
Timestamp:
2015-06-21T20:30:08-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3082 r3083  
    306306        (t (monom-dimension (leading-term poly)))))
    307307
    308 (defun saturation-extension-minus-1 (plist
    309                                      &aux
    310                                        (k (length plist))
    311                                        (plist (poly-standard-extension plist))
    312                                        (dimension (poly-dimension (car plist))))
     308(defun saturation-extension (plist
     309                             &aux
     310                               (k (length plist))
     311                               (plist (poly-standard-extension plist))
     312                               (nvars (poly-dimension (car plist))))
    313313  "Calculate [U1*P1-1,U2*P2-1,...,UK*PK-1], where PLIST=[P1,P2,...,PK].
    314314The polynomials in F are destructively modified by inserting k variables
    315315at the beginning."
    316316  (flet ((subtract-1 (p)
    317            (append-item p (make-instance 'term :coeff -1 :dimension dimension))))
    318     (print plist)
    319     (setf plist (mapc #'subtract-1 plist))
    320     (print plist))
     317           (append-item p (make-instance 'term :coeff -1 :dimension (+ k nvars)))))
     318    (setf plist (mapc #'subtract-1 plist)))
    321319  plist)
    322320
Note: See TracChangeset for help on using the changeset viewer.