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.

Ignore:
Timestamp:
2016-06-14T19:35:34-07:00 (8 years ago)
Author:
Marek Rychlik
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/symbolic-polynomial.lisp

    r4442 r4463  
    3838(defmethod print-object ((self symbolic-poly) stream)
    3939  (print-unreadable-object (self stream :type t :identity t)
    40     (with-accessors ((dimension poly-dimension)
    41                      (termlist poly-termlist)
     40    (with-accessors ((termlist poly-termlist)
    4241                     (order poly-term-order)
    4342                     (vars symbolic-poly-vars))
    4443        self
    45       (format stream "DIMENSION=~A TERMLIST=~A ORDER=~A VARS=~A"
    46               dimension termlist order vars))))
     44      (format stream "TERMLIST=~A ORDER=~A VARS=~A"
     45              termlist order vars))))
    4746
    4847
     
    5958(defmethod universal-equalp ((self symbol) (other symbol))
    6059  (eq self other))
    61 
    62 (defmethod update-instance-for-different-class :after ((old poly) (new  symbolic-poly) &key)
    63   "After adding variables to NEW, we need to make sure that the number
    64 of variables given by POLY-DIMENSION is consistent with VARS."
    65   (assert (= (length (symbolic-poly-vars new)) (poly-dimension new))))
    66 
    6760
    6861#|
     
    168161           (format nil "[~{~a~^, ~}]" (mapcar #'(lambda (p) (poly->string p)) (cdr self))))))
    169162  (:method ((self poly) &optional (vars nil))
    170     ;; Ensure that the number of variables matches the dimension
    171     (assert (= (length vars) (poly-dimension self)))
    172163    (infix-print-to-string (->sexp self vars)))
    173164  (:method ((self symbolic-poly) &optional (vars (symbolic-poly-vars self)))
Note: See TracChangeset for help on using the changeset viewer.