Changeset 4076
- Timestamp:
- 2016-05-31T21:27:17-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/symbolic-polynomial.lisp
r4067 r4076 119 119 (with-input-from-string (s str) 120 120 (let ((p-or-plist (read-poly vars :stream s :order order))) 121 ( typecase p-or-plist121 (etypecase p-or-plist 122 122 (poly (change-class p-or-plist 'symbolic-poly :vars vars)) 123 123 (cons … … 163 163 (defgeneric poly->string (self &optional vars) 164 164 (:documentation "Render polynomial SELF as a string, using symbolic variables VARS.") 165 (:method ((self list) &optional (vars nil)) 166 (assert (eql (car self) :[)) 167 (cons :[ (mapcar #'(lambda (p) (poly->string p vars)) (cdr self)))) 165 168 (:method ((self poly) &optional (vars nil)) 166 169 ;; Ensure that the number of variables matches the dimension
Note:
See TracChangeset
for help on using the changeset viewer.