A.9. Trace and Determinant

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.

Get APPLIED MULTIVARIATE STATISTICS: WITH SAS® SOFTWARE now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.