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 3063 for branches


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/polynomial.lisp

    r3062 r3063  
    293293
    294294
    295 (defun poly-standard-extension (plist &aux (k (length plist)))
     295(defun poly-standard-extension (plist &aux (k (length plist)) (i 0))
    296296  "Calculate [U1*P1,U2*P2,...,UK*PK], where PLIST=[P1,P2,...,PK]
    297297is a list of polynomials. Destructively modifies PLIST elements."
    298298  (mapc #'(lambda (poly)
    299             (left-tensor-product-by poly (make-monom-variable k i)))
     299            (left-tensor-product-by poly
     300                                    (prog1 (make-monom-variable k i) (incf i))))
    300301        plist))
    301302
Note: See TracChangeset for help on using the changeset viewer.