- Timestamp:
- 2015-06-20T16:17:56-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-poly.lisp
r2679 r2686 76 76 (dolist (x '(((0) . -11) ((2) . 2) ((3) . -33) ((4) . 88) ((5) . 55) ((7) . -77) ((9) . 9))) 77 77 (insert-item p-q (make-instance 'term :exponents (car x) :coeff (cdr x)))) 78 (dolist (x '( ((2) . -22) ((4) . -44) ((5) . -55) ((8) . -88) ((9) . -99) ))) 79 (insert-item p-uminus (make-instance 'term :exponents (car x) :coeff (cdr x)))) 78 80 ;;(print p) (print q) (print p+q) (print p-q) 79 81 (&body))) … … 83 85 (with-fixture poly-context () (is (r-equalp (add-to p q) p+q))) 84 86 (with-fixture poly-context () (is (r-equalp (subtract-from p q) p-q))) 87 (with-fixture poly-context () (is (r-equalp (unary-minus p) p-uminus))) 85 88 ) 86 89
Note:
See TracChangeset
for help on using the changeset viewer.