### The Maxima on-line user's manual

Algebra Calculator

#### Mat_trace

Function: mat_trace (<M>) Return the trace of the matrix <M>. If <M> isnt a matrix, return a noun form. When <M> is a block matrix, `mat_trace(M)` returns the same value as does `mat_trace(mat_unblocker(m))`.

```(%o1)                                true
(%i2) ```

### Related Examples

##### mat_trace-matrix-trace-transpose

H: matrix ([h1, h2], ...

B: matrix ([b1, 0], [...

D: matrix ([d1, 0], [...

Calculate

##### mat_trace-matrix-trace

A: matrix([a_1,0,0], ...

B: matrix([m11,m12,m1...

C: matrix([d_1,0,0], ...

Calculate

##### mat_trace-matrix-subst-trace-transpose

H: matrix ([h11, h12]...

B: matrix ([b1, 0], [...

D: matrix ([d1, 0], [...

Calculate

##### trace

P:(2*x-7*y)^2+(2*x+7*...

trace(?sexpand);

expand(P);

Calculate

##### mat_trace-matrix-trace

JE2:matrix([1+u*(a-4*...

TrJE2:mat_trace(JE2);

DetJE2:det(JE2);

Calculate

##### mat_trace-matrix-trace-transpose

H: matrix ([h11, h12]...

B: matrix ([b1, 0], [...

D: matrix ([d1, 0], [...

Calculate

##### mat_trace-matrix-subst-trace-transpose

H: matrix ([h11, h12]...

B: matrix ([b1, 0], [...

D: matrix ([d1, 0], [...

Calculate

##### mat_trace-matrix-trace

JE2:matrix([1+u*(a-4*...

TrJE2:mat_trace(JE2);

DetJE2:det(JE2);

Calculate

##### mat_trace-matrix-trace-transpose

H: matrix ([h1, h2], ...

B: matrix ([b1, 0], [...

D: matrix ([d1, 0], [...

Calculate

? mat_trace;

Calculate