- Timestamp:
- 2015-06-21T20:30:08-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r3082 r3083 306 306 (t (monom-dimension (leading-term poly))))) 307 307 308 (defun saturation-extension -minus-1(plist309 310 311 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)))) 313 313 "Calculate [U1*P1-1,U2*P2-1,...,UK*PK-1], where PLIST=[P1,P2,...,PK]. 314 314 The polynomials in F are destructively modified by inserting k variables 315 315 at the beginning." 316 316 (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))) 321 319 plist) 322 320
Note:
See TracChangeset
for help on using the changeset viewer.