close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 4214


Ignore:
Timestamp:
2016-06-04T13:24:58-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r4193 r4214  
    374374  (fast-add/subtract p q order-fn #'subtract-from #'unary-minus))
    375375
    376 (defmethod add-to ((self poly) (other poly))
     376(defmethod add-to ((self poly) (other poly)
     377                   &aux (other (copy-instance other)))
    377378  "Adds to polynomial SELF another polynomial OTHER.
    378379This operation destructively modifies both polynomials.
     
    386387 
    387388
    388 (defmethod subtract-from ((self poly) (other poly))
     389(defmethod subtract-from ((self poly) (other poly)
     390                          &aux (other (copy-instance other))))
    389391    "Subtracts from polynomial SELF another polynomial OTHER.
    390392This operation destructively modifies both polynomials.
Note: See TracChangeset for help on using the changeset viewer.