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

From ApCoCoAWiki
m (insert version info)
m (replaced <quotes> tag by real quotes)
 
Line 10: Line 10:
 
<description>
 
<description>
 
<example>
 
<example>
NCo.SetX(<quotes>xyz</quotes>);
+
NCo.SetX("xyz");
NCo.SetRelations([[<quotes>yx</quotes>,<quotes>xy</quotes>],[<quotes>zx</quotes>,<quotes>xz</quotes>],[<quotes>zy</quotes>,<quotes>yz</quotes>]]); -- yx=xy, zx=xz, zy=yz
+
NCo.SetRelations([["yx","xy"],["zx","xz"],["zy","yz"]]); -- yx=xy, zx=xz, zy=yz
 
NCo.RingEnv();
 
NCo.RingEnv();
 
Coefficient ring : Q
 
Coefficient ring : Q
 
Alphabet : xyz
 
Alphabet : xyz
 
Ordering : LLEX
 
Ordering : LLEX
Relations : [[<quotes>yx</quotes>, <quotes>xy</quotes>], [<quotes>zx</quotes>, <quotes>xz</quotes>], [<quotes>zy</quotes>, <quotes>yz</quotes>]]
+
Relations : [["yx", "xy"], ["zx", "xz"], ["zy", "yz"]]
 
-------------------------------
 
-------------------------------
 
NCo.UnsetRelations();
 
NCo.UnsetRelations();

Latest revision as of 13:45, 29 October 2020

This article is about a function from ApCoCoA-1.

NCo.UnsetRelations

Set relations to the empty set.

Syntax

NCo.UnsetRelations()

Description

Example

NCo.SetX("xyz");
NCo.SetRelations([["yx","xy"],["zx","xz"],["zy","yz"]]); -- yx=xy, zx=xz, zy=yz
NCo.RingEnv();
Coefficient ring : Q
Alphabet : xyz
Ordering : LLEX
Relations : [["yx", "xy"], ["zx", "xz"], ["zy", "yz"]]
-------------------------------
NCo.UnsetRelations();
NCo.RingEnv();
Coefficient ring : Q
Alphabet : xyz
Ordering : LLEX
-------------------------------

See also

NCo.SetRelations