close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 2792 for branches/f4grobner


Ignore:
Timestamp:
2015-06-20T21:21:46-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r2791 r2792  
    192192
    193193
    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.
     196Takes into accound divisors of zero in the ring, by
     197deleting 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>
     207Takes into accound divisors of zero in the ring, by
     208deleting 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))
    199215
    200216
Note: See TracChangeset for help on using the changeset viewer.