Changeset 3077
- Timestamp:
- 2015-06-21T18:30:48-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r3076 r3077 306 306 (t (monom-dimension (leading-term poly))))) 307 307 308 (defun saturation-extension ( Fplist308 (defun saturation-extension (plist 309 309 &aux 310 310 (plist (poly-standard-extension plist)) 311 311 (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]." 313 313 (flet ((subtract-1 (p) 314 314 (append-item p (make-instance 'term :coeff -1 :dimension dim)))) … … 316 316 (setf plist (mapc #'subtract-1 plist)) 317 317 (print plist)) 318 (nconc F plist))318 plist) 319 319 320 320 … … 326 326 (f (poly-list-add-variables f k)) 327 327 ;; 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)))) 329 329 "Calculate [F, U1*P1+U2*P2+...+UK*PK-1], where PLIST=[P1,P2,...,PK]. It destructively modifies F." 330 330 ;; Add -1 as the last term
Note:
See TracChangeset
for help on using the changeset viewer.