ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: isSemimagicSquare

isSemimagicSquare(M), where M is a real matrix, returns true if and only if M is a semi-magic square, i.e. a N×N matrix such that the sum of all elements in every row and column equals the same number, the so-called "magic number" of the semi-magic square. The diagonals need not sum up to the magic number (if they do, the square is also a magic square).

See also isNormalSemimagicSquare, isMagicSquare, and isNormalMagicSquare.