ⓘ 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: diag

diag(a1, a2, ..., an) returns the n×n square matrix with the entry Mij equal to ai δ(i, j) where δ is the Kronecker delta function.

diag(❨a1, a2, ..., an❩) returns the n×n square matrix with the entry Mij equal to ai δ(i, j) where δ is the Kronecker delta function.