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


Ignore:
Timestamp:
2015-06-15T19:23:22-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/termlist.lisp

    r1953 r1961  
    5858              (make-term :monom (monom-contract (term-monom term) k)
    5959                         :coeff (term-coeff term)))
     60          p))
     61
     62(defun termlist-ncontract (p &optional (k 1))
     63  "Eliminate first K variables from a polynomial P. Destructive version."
     64  (mapc #'(lambda (term)
     65            (declare (type term term))
     66            (setf (term-monom term) (monom-ncontract (term-monom term) k)))
    6067          p))
    6168
Note: See TracChangeset for help on using the changeset viewer.