For a square matrix, functions TRACE and DET will perform the respective tasks of finding the trace and the determinant. For A defined earlier, the statements
trace_a = trace(a); det_a = det(a); print trace_a, det_a;
result in tr(A) = 5 and det(A) = −23.
18.225.11.98