- Timestamp:
- 2015-06-19T16:18:24-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-monom.lisp
r2555 r2556 181 181 (q (make-instance 'poly))) 182 182 (dotimes (i 10) 183 (insert-item p (make-instance 'term :exponents (list i (* 2i)) :coeff (1+ (* 3 i))))184 (insert-item q (make-instance 'term :exponents (list (+ i5) (+ (* 2 i) 3)) :coeff (1- (* 3 i)))))183 (insert-item p (make-instance 'term :exponents (list (* 3 i)) :coeff (1+ (* 3 i)))) 184 (insert-item q (make-instance 'term :exponents (list (+ (* 3 i) 5) (+ (* 2 i) 3)) :coeff (1- (* 3 i))))) 185 185 (is-true (print p)) 186 186 (is-true (print q)) 187 (add-to p q) 188 (is-true (print p)) 187 189 )) 188 190
Note:
See TracChangeset
for help on using the changeset viewer.