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-01T09:23:43-07:00 (8 years ago)
Author:
Marek Rychlik
Message:
 
File:
1 edited

Legend:

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

    r4076 r4088  
    163163(defgeneric poly->string (self &optional vars)
    164164  (:documentation "Render polynomial SELF as a string, using symbolic variables VARS.")
    165   (:method ((self list) &optional (vars nil))
     165  (:method ((self list) &optional (vars nil vars-p))
    166166    (assert (eql (car self) :[))
    167     (cons :[ (mapcar #'(lambda (p) (poly->string p vars)) (cdr self))))
     167    (cond (vars-p
     168           (cons :[ (mapcar #'(lambda (p) (poly->string p vars)) (cdr self))))
     169          (t
     170           (cons :[ (mapcar #'(lambda (p) (poly->string p)) (cdr self))))))
    168171  (:method ((self poly) &optional (vars nil))
    169172    ;; Ensure that the number of variables matches the dimension
Note: See TracChangeset for help on using the changeset viewer.