- Timestamp:
- 2015-06-19T18:08:25-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-monom.lisp
r2575 r2582 176 176 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 177 177 178 #| 178 179 (test poly 179 180 "Polynomial" … … 188 189 (is-true (print p)) 189 190 )) 191 |# 192 193 (defun foo () 194 (let ((p (make-instance 'poly)) 195 (q (make-instance 'poly))) 196 (dotimes (i 5) 197 (insert-item p (make-instance 'term :exponents (list (* 3 i)) :coeff (1+ (* 3 i)))) 198 (insert-item q (make-instance 'term :exponents (list (+ (* 3 i) 2)) :coeff (1- (* 3 i))))) 199 (print p) 200 (print q) 201 (add-to p q) 202 (print p) 203 )) 204 190 205 191 206
Note:
See TracChangeset
for help on using the changeset viewer.