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 3342 for branches/f4grobner


Ignore:
Timestamp:
2015-06-23T11:35:55-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3286 r3342  
    8282    (insert-item poly (make-instance 'term :exponents (car x) :coeff (cdr x)))))
    8383
     84
     85(defmethod update-instance-for-different-class :after ((old term) (new symbolic-poly) &key)
     86  "Converts OLD of class TERM to a NEW of class POLY, by making it into a 1-element TERMLIST."
     87  (reinitialize-instance new
     88                         :dimension (monom-dimension old)
     89                         :termlist (list old)))
    8490
    8591(defmethod r-equalp ((self poly) (other poly))
Note: See TracChangeset for help on using the changeset viewer.