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 3402


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3401 r3402  
    9292
    9393
     94(defmethod update-instance-for-different-class :after ((old term) (new poly) &key)
     95  "Converts OLD of class TERM 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 old)))
     99
    94100(defmethod update-instance-for-different-class :after ((old monom) (new poly) &key)
    95101  "Converts OLD of class MONOM to a NEW of class POLY, by making it into a 1-element TERMLIST."
     
    97103                         :dimension (monom-dimension old)
    98104                         :termlist (list (change-class old 'term)))
    99 
    100 
    101 (defmethod update-instance-for-different-class :after ((old term) (new poly) &key)
    102   "Converts OLD of class TERM to a NEW of class POLY, by making it into a 1-element TERMLIST."
    103   (reinitialize-instance new
    104                          :dimension (monom-dimension old)
    105                          :termlist (list old)))
    106105
    107106(defmethod r-equalp ((self poly) (other poly))
Note: See TracChangeset for help on using the changeset viewer.