LinearAlgebra - Maple Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Mathematics : Linear Algebra : LinearAlgebra Package : Standard : LinearAlgebra/Trace

LinearAlgebra

 Trace
 compute the trace of a square Matrix

 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

 > $\mathrm{with}\left(\mathrm{LinearAlgebra}\right):$
 > $A≔⟨⟨a,b,c⟩|⟨d,e,f⟩|⟨g,h,i⟩⟩$
 ${A}{:=}\left[\begin{array}{ccc}{a}& {d}& {g}\\ {b}& {e}& {h}\\ {c}& {f}& {i}\end{array}\right]$ (1)
 > $\mathrm{Trace}\left(A\right)$
 ${a}{+}{e}{+}{i}$ (2)

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam