ApCoCoA-1:NCo.SetX

From ApCoCoAWiki
Revision as of 13:45, 29 October 2020 by AndraschkoBot (talk | contribs) (replaced <quotes> tag by real quotes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This article is about a function from ApCoCoA-1.

NCo.SetX

Set alphabet (set of indeterminates) for a free monoid ring.

Syntax

NCo.SetX(X:STRING)

Description

  • @param X: a STRING which is the alphabet (set of indeterminates) of a free monoid ring. Every letter in X must have a unique occurrence. The order of letters in X is important since it will induce word orderings. For example,

    NCo.SetX("xyz"); 
    NCo.SetOrdering("LLEX"); 
    

    defines the length-lexicographic ordering induced by x>y>z.

Example

NCo.RingEnv();
Coefficient ring : Q
Ordering : LLEX
-------------------------------
NCo.SetX("xyz");
NCo.RingEnv();
Coefficient ring : Q
Alphabet : xyz
Ordering : LLEX
-------------------------------

See also

NCo.SetOrdering