Changeset 2670
- Timestamp:
- 2015-06-20T15:56:16-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-poly.lisp
r2669 r2670 65 65 (p+q (make-instance 'poly)) 66 66 (p-q (make-instance 'poly))) 67 (dolist (x '( ( 2 . 22) (4 . 44) (5 . 55) (8 . 88) (9. 99) ))67 (dolist (x '( ((2) . 22) ((4) . 44) ((5) . 55) ((8) . 88) ((9) . 99) )) 68 68 (insert-item p (make-instance 'term :exponents (list (car x)) :coeff (cdr x)))) 69 (dolist (x '( ( 0 . 11) (2 . 20) (3 . 33) (4 . -44) (7 . 77) (8 . 88) (9. 90)))69 (dolist (x '( ((0) . 11) ((2) . 20) ((3) . 33) ((4) . -44) ((7) . 77) ((8) . 88) ((9) . 90))) 70 70 (insert-item q (make-instance 'term :exponents (list (car x)) :coeff (cdr x)))) 71 (dolist (x '(( 0 . 11) (2 . 42) (3 . 33) (5 . 55) (7 . 77) (8 . 172) (9. 189) ))71 (dolist (x '(((0) . 11) ((2) . 42) ((3) . 33) ((5) . 55) ((7) . 77) ((8) . 172) ((9) . 189) )) 72 72 (insert-item p+q (make-instance 'term :exponents (list (car x)) :coeff (cdr x)))) 73 (dolist (x '(( 0 . -11) (2 . 2) (3 . -33) (4 . 88) (5 . 55) (7 . -77) (9. 9)))74 (insert-item p-q (make-instance 'term :exponents ( list (car x)) :coeff (cdr x))))73 (dolist (x '(((0) . -11) ((2) . 2) ((3) . -33) ((4) . 88) ((5) . 55) ((7) . -77) ((9) . 9))) 74 (insert-item p-q (make-instance 'term :exponents (car x) :coeff (cdr x)))) 75 75 ;;(print p) (print q) (print p+q) (print p-q) 76 76 (&body)))
Note:
See TracChangeset
for help on using the changeset viewer.