Returns the object containing the components of the comma-separated list [x1,...,xn]. One-dimensional arrays are returned as VECTOR, MATRIX types are defined by linewise inputs: .
optiSLang uses 0-based indexing. It therefore follows that the first component is the zeroth element of the new object.
Syntax
[x1,...,xn]
Types
Variable Name | Value Type | Variable Type | ||
---|---|---|---|---|
Arguments: | x1 | real, complex | scalar, vector | |
: | ||||
xn | real, complex | scalar, vector | ||
Result: | real, complex | vector, matrix |
Calculator Input
Use the
or buttons to complete the operation.Examples
Vectors:
ID | Description | Type | Value | Expression | |
---|---|---|---|---|---|
x1 | Argument | REAL | 3 | 3 | |
x2 | Argument | COMPLEX REAL |
| cplx(2,3) | |
z | Result | COMPLEX REAL VECTOR |
| [x1, x2] |
Matrices:
ID | Description | Type | Value | Expression | |
---|---|---|---|---|---|
x1 | Argument | REAL VECTOR |
| [1, 2] | |
x2 | Argument | COMPLEX REAL VECTOR |
| [cplx(1,2), cplx(2,3)] | |
x3 | Argument | REAL MATRIX |
| [[1,2,3],[4,5,6]] | |
z | Result | COMPLEX REAL MATRIX |
| [x1, x2] |