BasisVector
Returns a standard basis vector in ℝⁿ.
Syntax
-
BasisVector(n, k)
-
n
is a positive integer -
k
is a positive integer in [1, n]
-
Description
If n
is a positive integer and k
a positive integer in [1, n] ∩ ℤ, then BasisVector(n, k)
returns the k
th standard basis vector in ℝⁿ.
Examples
BasisVector(3, 1)
⎛1⎞ e⎜0⎟ ⎝0⎠