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 3400


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3377 r3400  
     1;;----------------------------------------------------------------
     2;; File:     polynomial.lisp
     3;;----------------------------------------------------------------
     4;;
     5;; Author:   Marek Rychlik (rychlik@u.arizona.edu)
     6;; Date:     Thu Aug 27 09:41:24 2015
     7;; Copying:  (C) Marek Rychlik, 2010. All rights reserved.
     8;;
     9;;----------------------------------------------------------------
    110;;; -*-  Mode: Lisp -*-
    211;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
     
    8897                         :dimension (monom-dimension old)
    8998                         :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)))
    90105
    91106(defmethod r-equalp ((self poly) (other poly))
Note: See TracChangeset for help on using the changeset viewer.