Changeset 3676
- Timestamp:
- 2015-09-06T05:27:46-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r3673 r3676 436 436 (multiply g (change-class mg 'term :coeff cf))))))) 437 437 438 (defgeneric poly-content (object) 439 (:documentation "Greatest common divisor of the coefficients of the polynomial object OBJECT.") 440 (reduce #'universal-gcd (mapcar #'term-coeff (rest (poly-termlist p))) :initial-value (leading-coefficient p))) 441 438 442 #| 439 443 … … 442 446 (declare (type ring ring)) 443 447 (polysaturation-extension ring f (list p))) 444 445 446 447 448 449 448 450 449 (defun poly-primitive-part (ring p) … … 464 463 c)))) 465 464 466 (defun poly-content (ring p)467 "Greatest common divisor of the coefficients of the polynomial P. Use the RING structure468 to compute the greatest common divisor."469 (declare (type ring ring) (type poly p))470 (reduce (ring-gcd ring) (mapcar #'term-coeff (rest (poly-termlist p))) :initial-value (poly-lc p)))471 465 472 466 |#
Note:
See TracChangeset
for help on using the changeset viewer.