Trace - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


LinearAlgebra

  

Trace

  

compute the trace of a square Matrix

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Trace(A)

Parameters

A

-

square Matrix

Description

• 

The Trace(A) function computes the sum of the diagonal elements of Matrix A.

• 

This function is part of the LinearAlgebra package, and so it can be used in the form Trace(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[Trace](..).

Examples

withLinearAlgebra:

Aa,b,c|d,e,f|g,h,i

Aadgbehcfi

(1)

TraceA

a+e+i

(2)

See Also

Matrix