- Timestamp:
- 2015-06-05T11:19:50-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r55 r57 224 224 (declare (type poly p)) 225 225 (reduce (ring-gcd ring) (mapcar #'term-coeff (rest (poly-termlist p))) :initial-value (poly-lc p))) 226 227 (defun buchberger-criterion (ring g) 228 "Returns T if G is a Grobner basis, by using the Buchberger 229 criterion: for every two polynomials h1 and h2 in G the S-polynomial 230 S(h1,h2) reduces to 0 modulo G." 231 (every 232 #'poly-zerop 233 (makelist (normal-form ring (spoly ring (elt g i) (elt g j)) g nil) 234 (i 0 (- (length g) 2)) 235 (j (1+ i) (1- (length g)))))) 236
Note:
See TracChangeset
for help on using the changeset viewer.