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


Ignore:
Timestamp:
2015-06-09T12:25:28-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monomial.lisp

    r884 r886  
    188188(defmacro monom-contract (k m)
    189189  `(setf ,m (subseq ,m ,k)))
     190
     191(defun make-monom-variable (nvars pos &optional (power 1)
     192                            &aux (m (make-monom :dimension nvars)))
     193  "Construct a monomial in the polynomial ring
     194RING[X[0],X[1],X[2],...X[NVARS-1]] over the (unspecified) ring RING
     195which represents a single variable. It assumes number of variables
     196NVARS and the variable is at position POS. Optionally, the variable
     197may appear raised to power POWER. "
     198  (setf (monom-elt m pos) power)
     199  m)
Note: See TracChangeset for help on using the changeset viewer.