Macaulay2 » Documentation
Packages » SubalgebraBases :: subalgebraBasis
next | previous | forward | backward | up | index | toc

subalgebraBasis -- Compute subalgebra basis generators

Synopsis

Description

Computes a partial subalgebra basis for its input. This command returns the computed generators and not a computaiton object. If the input is a subring, then the computation object is stored in the cache of the input.

i1 : R = QQ[t_(1,1)..t_(3,3),MonomialOrder=>Lex];
i2 : M = genericMatrix(R,3,3);

             3      3
o2 : Matrix R  <-- R
i3 : A = subring gens minors(2, M);
i4 : subalgebraBasis A

o4 = | t_(2,2)t_(3,3)-t_(2,3)t_(3,2) t_(2,1)t_(3,3)-t_(2,3)t_(3,1)
     ------------------------------------------------------------------------
     t_(2,1)t_(3,2)-t_(2,2)t_(3,1) t_(1,2)t_(3,3)-t_(1,3)t_(3,2)
     ------------------------------------------------------------------------
     t_(1,2)t_(2,3)-t_(1,3)t_(2,2) t_(1,1)t_(3,3)-t_(1,3)t_(3,1)
     ------------------------------------------------------------------------
     t_(1,1)t_(3,2)-t_(1,2)t_(3,1) t_(1,1)t_(2,3)-t_(1,3)t_(2,1)
     ------------------------------------------------------------------------
     t_(1,1)t_(2,2)-t_(1,2)t_(2,1)
     ------------------------------------------------------------------------
     t_(1,1)t_(2,2)t_(3,1)t_(3,3)-t_(1,1)t_(2,3)t_(3,1)t_(3,2)-t_(1,2)t_(2,1)
     ------------------------------------------------------------------------
     t_(3,1)t_(3,3)+t_(1,2)t_(2,3)t_(3,1)^2+t_(1,3)t_(2,1)t_(3,1)t_(3,2)-t_(1
     ------------------------------------------------------------------------
     ,3)t_(2,2)t_(3,1)^2 t_(1,1)t_(1,3)t_(2,2)t_(3,3)-t_(1,1)t_(1,3)t_(2,3)t
     ------------------------------------------------------------------------
     _(3,2)-t_(1,2)t_(1,3)t_(2,1)t_(3,3)+t_(1,2)t_(1,3)t_(2,3)t_(3,1)+t_(1,3
     ------------------------------------------------------------------------
     )^2t_(2,1)t_(3,2)-t_(1,3)^2t_(2,2)t_(3,1) |

             1      11
o4 : Matrix R  <-- R

The command subalgebraBasis A is equivalent to the command gens sagbi A.

See also

Ways to use subalgebraBasis :

For the programmer

The object subalgebraBasis is a method function with options.