HP Prime for All

English  Русский 

Syntax

TRACE(matrix)

Description

Trace of a square matrix. Finds the trace of a square matrix, equal to the sum of the diagonal elements ( also equal to the sum of the eigenvalues).

Example

TRACE([[1,2],[3,4]]) returns 5

TRACE — Discussion