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


Ignore:
Timestamp:
2015-06-21T16:57:18-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3044 r3045  
    263263
    264264(defmethod right-tensor-product-by ((self poly) (other term))
    265   (setf (r-coeff self) (multiply-by (r-coeff self) (r-coeff other)))
    266   (call-next-method))
     265  (setf (poly-termlist self)
     266        (mapcan #'(lambda (term)
     267                    (let ((prod (right-tensor-product-by other) term))
     268                      (cond
     269                        ((r-zerop prod) nil)
     270                        (t (list prod)))))
     271                (poly-termlist)))
     272  self)
     273
    267274
    268275
Note: See TracChangeset for help on using the changeset viewer.