Changeset 3221
- Timestamp:
- 2015-06-22T19:45:05-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r3129 r3221 103 103 (defgeneric leading-coefficient (object) 104 104 (:method ((self poly)) 105 ( r-coeff (leading-term self)))105 (scalar-coeff (leading-term self))) 106 106 (:documentation "The leading coefficient of a polynomial. It signals error for a zero polynomial.")) 107 107 … … 109 109 (defgeneric second-leading-coefficient (object) 110 110 (:method ((self poly)) 111 ( r-coeff (second-leading-term self)))111 (scalar-coeff (second-leading-term self))) 112 112 (:documentation "The second leading coefficient of a polynomial. It 113 113 signals error for a polynomial with at most one term.")) … … 146 146 of terms. The code destroys both arguments, reusing the terms to build 147 147 the result." 148 `(macrolet ((lc (x) `( r-coeff (car ,x))))148 `(macrolet ((lc (x) `(scalar-coeff (car ,x)))) 149 149 (do ((p ,p) 150 150 (q ,q)
Note:
See TracChangeset
for help on using the changeset viewer.