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 3786 for branches


Ignore:
Timestamp:
2016-05-27T21:16:20-07:00 (8 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3784 r3786  
    125125    (poly-insert-term poly (make-instance 'term :exponents (car x) :coeff (cdr x)))))
    126126
    127 (defmethod update-instance-for-different-class :after ((old monom) (new poly) &key)
    128   "Converts OLD of class MONOM to a NEW of class POLY, by making it into a 1-element TERMLIST."
     127(defmethod update-instance-for-different-class :after ((old term) (new poly) &key)
     128  "Converts OLD of class TERM to a NEW of class POLY, by making it into a 1-element TERMLIST."
    129129  (reinitialize-instance new
    130130                         :dimension (monom-dimension old)
    131                          :termlist (list (make-instance 'term :exponents old :coeff 1))))
     131                         :termlist (list old)))
    132132 
    133133(defmethod universal-equalp ((self poly) (other poly))
Note: See TracChangeset for help on using the changeset viewer.