- Timestamp:
- 2015-06-22T10:11:44-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r3123 r3126 60 60 61 61 (defun alist->poly (alist &aux (poly (make-instance 'poly))) 62 "It reads polynomial from an alist formatted as ( ... (exponents . coeff) ...)." 62 "It reads polynomial from an alist formatted as ( ... (exponents . coeff) ...). 63 It can be used to enter simple polynomials by hand, e.g the polynomial 64 in two variables, X and Y, given in standard notation as: 65 66 3*X^2*Y^3+2*Y+7 67 68 can be entered as 69 (ALIST->POLY '(((2 3) . 3) ((0 1) . 2) ((0 0) . 7))). 70 71 NOTE: The primary use is for low-level debugging of the package." 63 72 (dolist (x alist poly) 64 73 (insert-item poly (make-instance 'term :exponents (car x) :coeff (cdr x)))))
Note:
See TracChangeset
for help on using the changeset viewer.