Changeset 4442 for branches/f4grobner/symbolic-polynomial.lisp
- Timestamp:
- 2016-06-10T19:45:42-07:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/symbolic-polynomial.lisp
r4435 r4442 133 133 p-or-plist))))) 134 134 135 (defun poly->alist (p)136 "Convert a polynomial P to an association list. Thus, the format of the137 returned value is ((MONOM[0] . COEFF[0]) (MONOM[1] . COEFF[1]) ...), where138 MONOM[I] is a list of exponents in the monomial and COEFF[I] is the139 corresponding coefficient in the ring."140 (cond141 ((poly-p p)142 (mapcar #'->list (poly-termlist p)))143 ((and (consp p) (eq (car p) :[))144 (cons :[ (mapcar #'poly->alist (cdr p))))))145 146 135 (defun string->alist (str vars 147 136 &optional
Note:
See TracChangeset
for help on using the changeset viewer.