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 3062 for branches/f4grobner


Ignore:
Timestamp:
2015-06-21T17:54:08-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3061 r3062  
    263263
    264264(defmethod right-tensor-product-by ((self poly) (other term))
     265  (setf (poly-termlist self)
     266        (mapcan #'(lambda (term)
     267                    (let ((prod (right-tensor-product-by term other)))
     268                      (cond
     269                        ((r-zerop prod) nil)
     270                        (t (list prod)))))
     271                (poly-termlist self)))
     272  self)
     273
     274(defmethod left-tensor-product-by ((self poly) (other monom))
     275  (setf (poly-termlist self)
     276        (mapcan #'(lambda (term)
     277                    (let ((prod (left-tensor-product-by term other)))
     278                      (cond
     279                        ((r-zerop prod) nil)
     280                        (t (list prod)))))
     281                (poly-termlist self)))
     282  self)
     283
     284(defmethod right-tensor-product-by ((self poly) (other monom))
    265285  (setf (poly-termlist self)
    266286        (mapcan #'(lambda (term)
Note: See TracChangeset for help on using the changeset viewer.