BaseVector
BaseVector
BaseVector[ a, b ] represents a vector in basis form, ai + bj.
Usages
BaseVector[ a, b ] and BaseVector[ a, b, c ]
BaseVector[ a, b ] represents the vector ai + bj, where a is the horizontal component and b the vertical component. With three arguments, BaseVector[ a, b, c ] represents ai + bj + ck. The components can be numbers or expressions.
| Example | in | rendered |
|---|---|---|
| A vector in two dimensions. | BaseVector[ 1, 2 ] |
|
| A vector in three dimensions. | BaseVector[ 1, 2, 3 ] |
|
Components equal to 0 are left out. |
BaseVector[ -4, 0 ] |
|
| Components can be expressions. | BaseVector[ a, -b ] |
Details
BaseVectoronly represents the vector; in a script, it is not changed. Calculations with vectors, such asBaseVector[1, 2] + BaseVector[3, -1], are done bySimplify; the result is displayed as .- Use
ComponentFormto convert other vectors to basis form, andMagnitudeandPolarFormto calculate the length and direction.
See also: Vector, PolarVector, ComponentForm, Magnitude