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 4067 for branches/f4grobner


Ignore:
Timestamp:
2016-05-31T18:57:50-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

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

    r4066 r4067  
    118118  "Converts a string STR to a polynomial in variables VARS."
    119119  (with-input-from-string (s str)
    120     (change-class (read-poly vars :stream s :order order) 'symbolic-poly :vars vars)))
     120    (let ((p-or-plist (read-poly vars :stream s :order order)))
     121      (typecase p-or-plist
     122        (poly (change-class p-or-plist 'symbolic-poly :vars vars))
     123        (cons
     124         (setf (cdr p-or-plist) (mapcar #'(lambda (p) (change-class p 'symbolic-poly :vars vars)) (cdr p-or-plist)))
     125         p-or-plist)))))
    121126
    122127(defun poly->alist (p)
Note: See TracChangeset for help on using the changeset viewer.