Changeset 3064
- Timestamp:
- 2015-06-21T18:08:06-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r3063 r3064 301 301 plist)) 302 302 303 #| 304 305 (defun saturation-extension (ring f plist 303 (defun saturation-extension (plist 306 304 &aux 307 (k (length plist)) 308 (d (monom-dimension (poly-lm (car plist)))) 309 f-x plist-x) 305 (plist (poly-saturation-extension plist)) 306 (dim (poly-dimension (car plist)))) 310 307 "Calculate [F, U1*P1-1,U2*P2-1,...,UK*PK-1], where PLIST=[P1,P2,...,PK]." 311 (declare (type ring ring)) 312 (setf f-x (poly-list-add-variables f k) 313 plist-x (mapcar #'(lambda (x) 314 (setf (poly-termlist x) 315 (nconc (poly-termlist x) 316 (list (make-term :monom (make-monom :dimension d) 317 :coeff (funcall (ring-uminus ring) 318 (funcall (ring-unit ring))))))) 319 x) 320 (poly-standard-extension plist))) 321 (append f-x plist-x)) 308 (flet ((subtract-1 (p) 309 (insert-item (make-instance 'term :coeff -1 :dimension dim)))) 310 (mapc #'subtract-1 plist)) 311 (nconc F plist)) 322 312 323 313
Note:
See TracChangeset
for help on using the changeset viewer.