ABG
May 19, 2023, 9:37pm
1
This is a library of block procedures to accompany the introduction to matrix multiplication at 2.1: Introduction to Matrices - Mathematics LibreTexts

Here are draggable blocks for the matrix multiplication procedure and a few sample exercises to show how to represent row and column matrices in AI2 lists.

Example numbers match the link supplied above.

Extra procedures in the Project:
matrix.aia (7.6 KB)

(Test results in comment bubbles are viewable in the Blocks Editor after importing the .aia)

5 Likes

function to get inverse of a matrix needed.

1 Like

ABG
May 20, 2023, 2:41am
4
That's two chapters down in the online book, after plowing through the Gauss Jordan method.

Feel free to add to this thread.

ABG
May 21, 2023, 5:50pm
6
As requested, here is a blocks based matrix inversion value procedure, along with two test cases from 2.5: Application of Matrices in Cryptography - Mathematics LibreTexts

matrix.aia (11.4 KB)

The algorithm is taken from https://www.codewithc.com/c-program-for-gauss-jordan-method/ and is taken literally from the C code.

This algorithm lacks error checking for cases where the given matrix can't have an inverse:

number of rows does not match number of columns
the matrix does not have an inverse (manifests by a divide by zero error)
1 Like