Algosim documentation: How do I enter a matrix?

How do I enter a matrix?

To enter a matrix, you use vector brackets: ❨❩. Specifically, you nest these to create a “vector of vectors” representing a matrix in row-major order.

To insert a pair of vector brackets, press Shift+Ctrl+E or Shift+Ctrl+V.

Examples:

A ≔ ❨❨2, 1, 3❩, ❨0, −2, 1❩, ❨1, 2, 3❩❩
⎛ 2   1   3⎞
⎜ 0  −2   1⎟
⎝ 1   2   3⎠
det(A)
−9

Documentation links