powered by
Returns the trace of a matrix
tr(a)
Matrix whose trace is desired
Robin K. S. Hankin
tr(matrix(1:9,3,3))
Run the code above in your browser using DataLab