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 3010


Ignore:
Timestamp:
2015-06-21T15:55:56-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3009 r3010  
    4444          (poly-termlist self)
    4545          (poly-term-order self)))
     46
     47(defgeneric change-order (self other)
     48  (:method ((self poly) (other poly))
     49    (unless (eq (poly-term-order self) (poly-term-order other))
     50      (setf (poly-termlist self) (sort (poly-termlist self) (poly-term-order other))
     51            (poly-term-order self) (poly-term-order other)))
     52    self))
    4653
    4754(defmethod r-equalp ((self poly) (other poly))
Note: See TracChangeset for help on using the changeset viewer.