- Timestamp:
- 2015-06-22T21:14:29-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-symbolic-poly.lisp
r3233 r3267 57 57 (in-suite symbolic-poly-suite) 58 58 59 (test sym-poly 60 (let ((p (make-instance 'poly)) 61 (q (make-instance 'poly :order nil)) 62 (p+q (make-instance 'poly)) 63 (p-q (make-instance 'poly)) 64 (p-uminus (make-instance 'poly))) 65 ;; Populate the polynomials; the lists of (exponents . coefficient) pairs 66 ;; must be in increasing order in Q, but Q is unordered (:ORDER NIL) 67 ;; so it will be automatically sorted. 68 (dolist (x '( ((2) . 22) ((4) . 44) ((5) . 55) ((8) . 88) ((9) . 99) )) 69 (insert-item p (make-instance 'term :exponents (car x) :coeff (cdr x)))) 70 59 71 60 72 (run! 'symbolic-poly-suite)
Note:
See TracChangeset
for help on using the changeset viewer.