- Timestamp:
- 2015-06-20T21:21:46-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r2791 r2792 192 192 193 193 194 (defun multiply-term-by-termlist (term termlist) 195 (mapcan #'(lambda (term-termlist) (term-mul-lst term term-termlist)) termlist)) 196 197 (defun multiply-termlist-by-term (termlist term) 198 (mapcan #'(lambda (term-termlist) (term-mul-lst term-termlist term)) termlist)) 194 (defun multiply-term-by-termlist-dropping-zeros (term termlist) 195 "A product of a term TERM by a list of term, TERMLIST. 196 Takes into accound divisors of zero in the ring, by 197 deleting zero terms." 198 (mapcan #'(lambda (other-term) 199 (let ((prod (term-multiply term other-term))) 200 (cond 201 ((r-zerop prod) nil) 202 (t (list prod))))) 203 termlist)) 204 205 (defun multiply-termlist-by-term-dropping-zeros (termlist term) 206 "A product of a termlist TERMLIST by a term TERM> 207 Takes into accound divisors of zero in the ring, by 208 deleting zero terms." 209 (mapcan #'(lambda (other-term) 210 (let ((prod (term-multiply other-term term))) 211 (cond 212 ((r-zerop prod) nil) 213 (t (list prod))))) 214 termlist)) 199 215 200 216
Note:
See TracChangeset
for help on using the changeset viewer.