next up previous contents index
suivant: Determinant of a matrix monter: Linear algebra précédent: Inverse of a matrix   Table des matières   Index


Trace of a matrix : trace

trace takes as argument a matrix A.
trace returns the trace of the matrix A, that is the sum of the diagonal elements.
Input :
trace([[1,2],[3,4]])
Output :
5



giac documentation written by Renée De Graeve and Bernard Parisse