Macaulay2 » Documentation
Packages » A1BrouwerDegrees :: getTrace
next | previous | forward | backward | up | index | toc

getTrace -- Computes the trace over $k$ for an element in a finite dimensional $k$ -algebra

Description

For an element in an algebra C over a field $k$ or a polynomial ring S and an ideal I, this function computes the trace over $k$ as the trace of the getMultiplicationMatrix of the element.

i1 : L = QQ[x]/(x^6+x^5+x^4+x^3+x^2+x+1);
i2 : F = toField L;
i3 : getTrace(F[a,b,c], ideal(a^2,b^2,c^2),1+a*b+b*c+c*a)

o3 = 8

o3 : F
i4 : R = QQ[x,y]/(x^2+y^2+1, 3*x+2);
i5 : getTrace(R, 1+y*x^2)

o5 = 2

o5 : QQ

See also

Ways to use getTrace:

  • getTrace(Ring,Ideal,Thing)
  • getTrace(Ring,Thing)

For the programmer

The object getTrace is a method function.


The source of this document is in A1BrouwerDegrees/Documentation/TraceAndNormDoc.m2:82:0.