Changeset 3426
- Timestamp:
- 2015-08-27T17:32:37-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r3425 r3426 321 321 (change-class (copy-instance POLY2) 'poly))) 322 322 323 (defmethod r- (( poly1 term) poly2)324 "Non-destructively subtract POLY1 and POLY2."323 (defmethod r- ((minuend term) &rest subtrahends) 324 "Non-destructively subtract MINUEND and SUBTRAHENDS." 325 325 (subtract-from (change-class (copy-instance POLY1) 'poly) 326 ( change-class (copy-instance POLY2) 'poly)))326 (reduce #'r+ subtrahends))) 327 327 328 328 (defmethod r+ ((poly1 monom) poly2) … … 334 334 "Non-destructively subtract MINUEND and SUBTRAHENDS." 335 335 (subtract-from (change-class (copy-instance POLY1) 'poly) 336 ( apply#'r+ subtrahends)))336 (reduce #'r+ subtrahends))) 337 337 338 338 (defmethod r* ((poly1 poly) (poly2 poly))
Note:
See TracChangeset
for help on using the changeset viewer.