Student[LinearAlgebra] - Maple Programming Help

Home : Support : Online Help : Education : Student Package : Linear Algebra : Computation : Standard : Student/LinearAlgebra/Trace

Student[LinearAlgebra]

 Trace
 compute the trace of a square Matrix

 Calling Sequence Trace(A)

Parameters

 A - square Matrix

Description

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

Examples

 > $\mathrm{with}\left(\mathrm{Student}[\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)