Changeset 4092 for branches/f4grobner
- Timestamp:
- 2016-06-01T10:15:55-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r4071 r4092 374 374 self) 375 375 376 (defmethod add-to ((self poly) (other term)) 377 "Adds to polynomial SELF a term OTHER. This operation 378 destructively modifies OTHER." 379 (with-slots (termlist order) 380 self 381 (setf termlist (merge 'list termlist (list other) order)))) 376 382 377 383 (defmethod subtract-from ((self poly) (other poly)) … … 418 424 (multiply-term-by-termlist-dropping-zeros (car q) p t)) 419 425 (t 420 (cons (multiply (car p) (car q))426 (cons (multiply-by (car p) (car q)) 421 427 (add-termlists 422 428 (multiply-term-by-termlist-dropping-zeros (car p) (cdr q)) … … 537 543 (declare (ignore c)) 538 544 (subtract 539 (multiply f (change-class mf 'term :coeff cg))540 (multiply g (change-class mg 'term :coeff cf)))))))545 (multiply-by f (change-class mf 'term :coeff cg)) 546 (multiply-by g (change-class mg 'term :coeff cf))))))) 541 547 542 548 (defgeneric poly-content (object)
Note:
See TracChangeset
for help on using the changeset viewer.