Changeset 3400
- Timestamp:
- 2015-08-27T09:41:39-07:00 (9 years ago)
- 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 ;;---------------------------------------------------------------- 1 10 ;;; -*- Mode: Lisp -*- 2 11 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; … … 88 97 :dimension (monom-dimension old) 89 98 :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))) 90 105 91 106 (defmethod r-equalp ((self poly) (other poly))
Note:
See TracChangeset
for help on using the changeset viewer.