Changeset 3684
- Timestamp:
- 2015-09-06T05:49:34-07:00 (10 years ago)
- File:
- 
      - 1 edited
 
 - 
          
  branches/f4grobner/polynomial.lisp (modified) (1 diff)
 
Legend:
- Unmodified
- Added
- Removed
- 
      branches/f4grobner/polynomial.lispr3683 r3684 444 444 :initial-value (leading-coefficient self)))) 445 445 446 (defgeneric poly-primitive-part (self) 447 (:documentation "Divide polynomial SELF by gcd of its 448 coefficients. Return SELF.") 449 (:method ((self poly)) 450 (if (universal-zerop object) 451 (values object 1) 452 (let ((c (poly-content object))) 453 (mapc #'(lambda (x) 454 (setf (term-coeff x) (divide (term-coeff x) c))) 455 (poly-termlist p)))) 456 self)) 446 (defun poly-primitive-part (object) 447 "Non-destructively divide polynomial OBJECT by gcd of its 448 coefficients. Return the resulting polynomial." 449 (divide-by object (poly-content object))) 457 450 458 451 #| 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
