- Timestamp:
- 2015-06-20T17:51:48-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-poly.lisp
r2736 r2737 71 71 (dolist (x '( ((2) . 22) ((4) . 44) ((5) . 55) ((8) . 88) ((9) . 99) )) 72 72 (insert-item p (make-instance 'term :exponents (car x) :coeff (cdr x)))) 73 74 73 (dolist (x '( ((9) . 90) ((0) . 11) ((2) . 20) ((3) . 33) ((4) . -44) ((7) . 77) ((8) . 88) )) 75 74 (insert-item q (make-instance 'term :exponents (car x) :coeff (cdr x)))) 76 75 ;; P+Q 77 76 (dolist (x '(((0) . 11) ((2) . 42) ((3) . 33) ((5) . 55) ((7) . 77) ((8) . 176) ((9) . 189) )) 78 77 (insert-item p+q (make-instance 'term :exponents (car x) :coeff (cdr x)))) 79 78 ;; P-Q 80 79 (dolist (x '(((0) . -11) ((2) . 2) ((3) . -33) ((4) . 88) ((5) . 55) ((7) . -77) ((9) . 9))) 81 80 (insert-item p-q (make-instance 'term :exponents (car x) :coeff (cdr x)))) 82 81 ;; -P 83 82 (dolist (x '( ((2) . -22) ((4) . -44) ((5) . -55) ((8) . -88) ((9) . -99) )) 84 83 (insert-item p-uminus (make-instance 'term :exponents (car x) :coeff (cdr x))))
Note:
See TracChangeset
for help on using the changeset viewer.