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


Ignore:
Timestamp:
2015-08-27T09:43:14-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3400 r3401  
    9292
    9393
     94(defmethod update-instance-for-different-class :after ((old monom) (new poly) &key)
     95  "Converts OLD of class MONOM to a NEW of class POLY, by making it into a 1-element TERMLIST."
     96  (reinitialize-instance new
     97                         :dimension (monom-dimension old)
     98                         :termlist (list (change-class old 'term)))
     99
     100
    94101(defmethod update-instance-for-different-class :after ((old term) (new poly) &key)
    95102  "Converts OLD of class TERM to a NEW of class POLY, by making it into a 1-element TERMLIST."
     
    97104                         :dimension (monom-dimension old)
    98105                         :termlist (list old)))
    99 
    100 (defmethod update-instance-for-different-class :after ((old monom) (new poly) &key)
    101   "Converts OLD of class MONOM to a NEW of class POLY, by making it into a 1-element TERMLIST."
    102   (reinitialize-instance new
    103                          :dimension (monom-dimension old)
    104                          :termlist (list (change-class old 'term)))
    105106
    106107(defmethod r-equalp ((self poly) (other poly))
Note: See TracChangeset for help on using the changeset viewer.