Changeset 2917
- Timestamp:
- 2015-06-21T12:46:12-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r2916 r2917 196 196 (defun add-termlists (p q order-fn) 197 197 "Destructively adds two termlists P and Q ordered according to ORDER-FN." 198 (fast-add/subtract p q order-fn add-to nil)) 199 198 (fast-add/subtract p q order-fn #'add-to nil)) 200 199 201 200 (defmacro multiply-term-by-termlist-dropping-zeros (term termlist … … 217 216 (defun multiply-termlists (p q order-fn) 218 217 (cond 219 ((or (endp p) (endp q)) nil) ;p or q is 0 (represented by NIL) 218 ((or (endp p) (endp q)) 219 ;;p or q is 0 (represented by NIL) 220 nil) 220 221 ;; If p= p0+p1 and q=q0+q1 then p*q=p0*q0+p0*q1+p1*q 221 222 ((endp (cdr p)) … … 229 230 (multiply-termlists (cdr p) q) 230 231 order-fn)))))))) 232 #| 233 231 234 232 235 … … 237 240 self) 238 241 242 |# 239 243 240 244 #|
Note:
See TracChangeset
for help on using the changeset viewer.