Changeset 3880 for branches/f4grobner
- Timestamp:
- 2016-05-28T21:23:27-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r3879 r3880 292 292 self)) 293 293 294 (defmethod unary-minus ((self poly)) 295 "Destructively modifies the coefficients of the polynomial SELF, 296 by changing their sign." 297 (mapc #'unary-minus (poly-termlist self)) 298 self) 299 300 (defun add-termlists (p q order-fn) 301 "Destructively adds two termlists P and Q ordered according to ORDER-FN." 302 (fast-add/subtract p q order-fn #'add-to nil)) 303 294 304 (defmethod add-to ((self poly) (other poly)) 295 305 "Adds to polynomial SELF another polynomial OTHER. … … 312 322 (poly-termlist self) (poly-termlist other) 313 323 (poly-term-order self)))) 314 315 (defmethod unary-minus ((self poly))316 "Destructively modifies the coefficients of the polynomial SELF,317 by changing their sign."318 (mapc #'unary-minus (poly-termlist self))319 self)320 321 (defun add-termlists (p q order-fn)322 "Destructively adds two termlists P and Q ordered according to ORDER-FN."323 (fast-add/subtract p q order-fn #'add-to nil))324 324 325 325 (defmacro multiply-term-by-termlist-dropping-zeros (term termlist
Note:
See TracChangeset
for help on using the changeset viewer.