Difference between revisions of "Manuals/calci/TRACE"
Jump to navigation
Jump to search
(Created page with "<div style="font-size:30px">'''MATRIXTRACE (a) '''</div><br/> *<math> a </math> is any matrix. ==Description== *This function shows the trace value of the given matrix. *In <...") |
|||
Line 16: | Line 16: | ||
==Examples== | ==Examples== | ||
+ | # TRACE([3,6,9;12,-67,-98;45,23,98]) = 34 | ||
+ | # TRACE([[10,15,-19,43.2],[78,56,-90,32.9],[1,17,-143,187],[15,18,432,987]]) = 910 | ||
+ | # TRACE([[3,8],[10,12]]) = 15 | ||
==See Also== | ==See Also== |
Revision as of 14:02, 6 July 2017
MATRIXTRACE (a)
- is any matrix.
Description
- This function shows the trace value of the given matrix.
- In , is any matirx.
- The trace of an nxn square matrix is defined to be the sum of all main diagonal entries.
- Consider the matrix A with the elements .
- Here trace of the matrix A is =.Where denotes the entry on the row and column of A.
- Now consider 3x3 matrix
- Here tr(A)= a+e+j.
Examples
- TRACE([3,6,9;12,-67,-98;45,23,98]) = 34
- TRACE([[10,15,-19,43.2],[78,56,-90,32.9],[1,17,-143,187],[15,18,432,987]]) = 910
- TRACE([[3,8],[10,12]]) = 15