Difference between revisions of "Package sagbi/SB.GetLTSA"
From ApCoCoAWiki
Andraschko (talk | contribs) (Created page with "{{Version|2}} <command> <title>SB.GetLTSA</title> <short_description>This function returns the leading term subalgebra of a given Subalgebra.</short_description> <syn...") |
m (replaced <quotes> tags by real quotes) |
||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
<short_description>This function returns the leading term subalgebra of a given Subalgebra.</short_description> | <short_description>This function returns the leading term subalgebra of a given Subalgebra.</short_description> | ||
− | <syntax>SB.GetLTSA(ref S: TAGGED( | + | <syntax>SB.GetLTSA(ref S: TAGGED("$apcocoa/sagbi.Subalgebra")): TAGGED("$apcocoa/sagbi.Subalgebra")</syntax> |
<description> | <description> | ||
Returns the leading term subalgebra of <tt>S</tt>, i.e. the subalgebra generated by all terms appearing as the leading term of a polynomial in <tt>S</tt>. <par/> | Returns the leading term subalgebra of <tt>S</tt>, i.e. the subalgebra generated by all terms appearing as the leading term of a polynomial in <tt>S</tt>. <par/> | ||
Line 15: | Line 15: | ||
<example> | <example> | ||
Use R ::= QQ[x,y,z]; | Use R ::= QQ[x,y,z]; | ||
− | S := SB.Subalgebra(R,[x^2,y | + | S := SB.Subalgebra(R,[x^2,x^2+y]); |
PrintLn SB.GetLTSA(ref S); | PrintLn SB.GetLTSA(ref S); | ||
− | -- SubalgebraWithID(2, QQ[x^2 | + | -- SubalgebraWithID(2, QQ[y, x^2]) of RingWithID(1311, "QQ[x,y,z]") |
PrintLn SB.GetLTSA(ref S); | PrintLn SB.GetLTSA(ref S); | ||
− | -- SubalgebraWithID(3, QQ[x^2 | + | -- SubalgebraWithID(3, QQ[y, x^2]) of RingWithID(1311, "QQ[x,y,z]")</example> |
</description> | </description> | ||
Latest revision as of 13:21, 29 October 2020
This article is about a function from ApCoCoA-2. |
SB.GetLTSA
This function returns the leading term subalgebra of a given Subalgebra.
Syntax
SB.GetLTSA(ref S: TAGGED("$apcocoa/sagbi.Subalgebra")): TAGGED("$apcocoa/sagbi.Subalgebra")
Description
Returns the leading term subalgebra of S, i.e. the subalgebra generated by all terms appearing as the leading term of a polynomial in S.
Note: Calling the function more than once results in equal subalgebras with different IDs.
@param S A subalgebra
@return the leading term subalgebra of S
Example
Use R ::= QQ[x,y,z]; S := SB.Subalgebra(R,[x^2,x^2+y]); PrintLn SB.GetLTSA(ref S); -- SubalgebraWithID(2, QQ[y, x^2]) of RingWithID(1311, "QQ[x,y,z]") PrintLn SB.GetLTSA(ref S); -- SubalgebraWithID(3, QQ[y, x^2]) of RingWithID(1311, "QQ[x,y,z]")
See also
Package sagbi/SB.GetTruncSAGBI