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


Ignore:
Timestamp:
2016-05-27T22:02:30-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3795 r3796  
    130130                         :dimension (monom-dimension old)
    131131                         :termlist (list old)))
     132
     133(defmethod update-instance-for-different-class :before ((old monom) (new poly) &key)
     134  "Converts OLD of class MONOM to a NEW of class POLY, by making it into a 1-element TERMLIST."
     135  (reinitialize-instance new
     136                         :dimension (monom-dimension old)
     137                         :termlist (list (change-class old 'term :coeff 1))))
    132138 
    133139(defmethod universal-equalp ((self poly) (other poly))
Note: See TracChangeset for help on using the changeset viewer.