# Singular          #### D.4.19.7 finiteDiagInvariants

Procedure from library normaliz.lib (see normaliz_lib).

Usage:
finiteDiagInvariants(intmat U);

Return:
This function computes the ring of invariants of a finite abelian group acting diagonally on the surrounding polynomial ring . The group is the direct product of cyclic groups generated by finitely many elements . The element acts on the indeterminate by where is a primitive root of unity of order equal to . The ring of invariants is generated by all monomials satisfying the system mod ord , . The input to the function is the matrix with rows ord , . The output is a monomial ideal listing the algebra generators of the subalgebra of invariants for all .

The function returns the ideal given by the input matrix C if one of the options supp, triang, volume, or hseries has been activated. However, in this case some numerical invariants are computed, and some other data may be contained in files that you can read into Singular (see showNuminvs, exportNuminvs).

Note:

Example:
 LIB "normaliz.lib"; ring R = 0,(x,y,z,w),dp; intmat C = 1,1,1,1,5, 1,0,2,0,7; finiteDiagInvariants(C); ==> _=w5 ==> _=z7w3 ==> _=z14w ==> _=z35 ==> _=yw4 ==> _=yz7w2 ==> _=yz14 ==> _=y2w3 ==> _=y2z7w ==> _=y3w2 ==> _=y3z7 ==> _=y4w ==> _=y5 ==> _=xz3w ==> _=xz24 ==> _=xyz3 ==> _=x2z13 ==> _=x3z2 ==> _=x5zw4 ==> _=x5yzw3 ==> _=x5y2zw2 ==> _=x5y3zw ==> _=x5y4z ==> _=x7w3 ==> _=x7yw2 ==> _=x7y2w ==> _=x7y3 ==> _=x12zw2 ==> _=x12yzw ==> _=x12y2z ==> _=x14w ==> _=x14y ==> _=x19z ==> _=x35 