Difference between revisions of "ApCoCoA-1:NCo.SetRelations"

From ApCoCoAWiki
(New page: <command> <title>NCo.SetRelations</title> <short_description> Set relations for a finitely presented monoid ring. </short_description> <syntax> NCo.SetRelations(Relations:LIST) </syntax> <...)
 
Line 31: Line 31:
 
<see>NCo.SetX</see>
 
<see>NCo.SetX</see>
 
<see>NCo.UnsetRelations</see>
 
<see>NCo.UnsetRelations</see>
<see>Introduction to CoCoAServer</see>
 
 
</seealso>
 
</seealso>
 
<types>
 
<types>

Revision as of 18:52, 1 May 2013

NCo.SetRelations

Set relations for a finitely presented monoid ring.

Syntax

NCo.SetRelations(Relations:LIST)

Description

Before calling the function, please set ring environment alphabet (or set of indeterminates) X through the functions NCo.SetX. For more information, please check the relevant functions.

  • @param Relations: a finite set of relations. It is of LIST type. Each element in Relations is of the form [W1, W2], where W1 and W2 are words in <X>. Each word is represented as a STRING. For example, the word xy^2x is represented as "xyyx", and the identity is represented as the empty string "". Thus, the relation (yx, xy) is represented as ["yx", "xy"], and the set of relations {(yx, xy),(zx,xz),(zy,yz)} is represented as [["yx", "xy"],["zx", "xz"],["zy", "yz"]].

Example

NCo.RingEnv();
Coefficient ring : Q
Ordering : LLEX
-------------------------------
NCo.SetX(<quotes>abc</quotes>);
Relations:=[[<quotes>ba</quotes>,<quotes>ab</quotes>], [<quotes>ca</quotes>,<quotes>ac</quotes>], [<quotes>cb</quotes>,<quotes>bc</quotes>]]; --ba=ab, ca=ac, cb=bc
NCo.SetRelations(Relations);
NCo.RingEnv();
Coefficient ring : Q
Alphabet : abc
Ordering : LLEX
Relations : [[<quotes>ba</quotes>, <quotes>ab</quotes>], [<quotes>ca</quotes>, <quotes>ac</quotes>], [<quotes>cb</quotes>, <quotes>bc</quotes>]] -- relations generated by {ba=ab, ca=ac, cb=bc}
-------------------------------

See also

NCo.SetX

NCo.UnsetRelations