When to use the Linear Algebra "Diagonal Matrix" check?
Do you want to check whether a matrix is diagonal? This article explains when answers are marked (in)correct by the Diagonal Matrix check.
Written by Eric Bouwers
Updated over a week ago

Grasple has multiple check methods using the Computer Algebra System (CAS) which can be used within the editor to indicate when the answer of a student should be marked correct/incorrect. A full list of current options can be found in this article.

1. When to use the Diagonal Matrix check?

2. Example cases

3. How does the Diagonal Matrix check work?

When to use the Diagonal Matrix check?

If you want to check whether the student answer is a Diagonal Matrix you should use this check. This check only works on matrices of any size, but not on lists or expressions.

Example cases

This method checks whether all elements on the matrix that are not on the diagonal are zero.

How does the Diagonal Matrix check work?

The CAS loops over all elements in the matrix which are not on the diagonal and verifies that these elements are zero (after simplification). Simplification is done using the mathematical rules within CAS.

Do you want to know more about this check, whether you should use it for your exercise or any of the other checks? Please let us know via the chat icon in the right bottom of the screen!