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


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3076 r3077  
    306306        (t (monom-dimension (leading-term poly)))))
    307307
    308 (defun saturation-extension (F plist
     308(defun saturation-extension (plist
    309309                             &aux
    310310                               (plist (poly-standard-extension plist))
    311311                               (dim (poly-dimension (car plist))))
    312   "Calculate [F, U1*P1-1,U2*P2-1,...,UK*PK-1], where PLIST=[P1,P2,...,PK]."
     312  "Calculate [U1*P1-1,U2*P2-1,...,UK*PK-1], where PLIST=[P1,P2,...,PK]."
    313313  (flet ((subtract-1 (p)
    314314           (append-item p (make-instance 'term :coeff -1 :dimension dim))))
     
    316316    (setf plist (mapc #'subtract-1 plist))
    317317    (print plist))
    318   (nconc F plist))
     318  plist)
    319319
    320320
     
    326326                                   (f (poly-list-add-variables f k))
    327327                                   ;; Set PLIST to [U1*P1,U2*P2,...,UK*PK]
    328                                    (plist (apply #'poly-append (poly-standard-extension plist))))
     328                                   (plist (apply #'nconc (poly-standard-extension plist))))
    329329  "Calculate [F, U1*P1+U2*P2+...+UK*PK-1], where PLIST=[P1,P2,...,PK]. It destructively modifies F."
    330330  ;; Add -1 as the last term
Note: See TracChangeset for help on using the changeset viewer.