Difference between revisions of "Package sagbi/SB.GetRing"
From ApCoCoAWiki
Andraschko (talk | contribs) (added see item) |
Andraschko (talk | contribs) m (replaced quotes by <qoutes> tag) |
||
Line 4: | Line 4: | ||
<short_description>Returns the superring of a given subalgebra.</short_description> | <short_description>Returns the superring of a given subalgebra.</short_description> | ||
− | <syntax>SB.GetRing(S: TAGGED( | + | <syntax>SB.GetRing(S: TAGGED(<quotes>$apcocoa/sagbi.Subalgebra</quotes>)): RING</syntax> |
<description> | <description> | ||
This function returns the superring of a given subalgebra <tt>S</tt>, i.e. the ring <tt>R</tt> which <tt>S</tt> is a subalgebra of. | This function returns the superring of a given subalgebra <tt>S</tt>, i.e. the ring <tt>R</tt> which <tt>S</tt> is a subalgebra of. | ||
Line 16: | Line 16: | ||
S := SB.Subalgebra(R,[x^2,y+z]); | S := SB.Subalgebra(R,[x^2,y+z]); | ||
PrintLn SB.GetRing(S); | PrintLn SB.GetRing(S); | ||
− | -- RingWithID(1217, | + | -- RingWithID(1217, <quotes>QQ[x,y,z]</quotes>) </example> |
</description> | </description> | ||
Revision as of 13:40, 28 October 2020
This article is about a function from ApCoCoA-2. |
SB.GetRing
Returns the superring of a given subalgebra.
Syntax
SB.GetRing(S: TAGGED(<quotes>$apcocoa/sagbi.Subalgebra</quotes>)): RING
Description
This function returns the superring of a given subalgebra S, i.e. the ring R which S is a subalgebra of.
@param S A subalgebra
@return The superring of S
Example
Use R ::= QQ[x,y,z]; S := SB.Subalgebra(R,[x^2,y+z]); PrintLn SB.GetRing(S); -- RingWithID(1217, <quotes>QQ[x,y,z]</quotes>)
See also
Package sagbi/SB.GetTruncSAGBI