Algosim documentation: ❨❩

❨❩ (vector brackets)

Creates vectors and matrices.

Syntax

Description

Vector brackets ❨❩ are used to create vectors and matrices. If a, b, ... are numbers, then ❨a, b, ...❩ is the vector containing these numbers (in order). If u, v, ... are vectors of the same dimension, then ❨u, v, ...❩ is the matrix having these vectors are rows.

Notes

Examples

A ≔ ❨❨1, 0, 2❩, ❨0, 1, 2❩, ❨1, 1, −1❩❩
⎛ 1   0   2⎞
⎜ 0   1   2⎟
⎝ 1   1  −1⎠
u ≔ ❨1, 2, 1❩
 ⎛1⎞
e⎜2⎟
 ⎝1⎠
A⋅u
 ⎛3⎞
e⎜4⎟
 ⎝2⎠

See also