PRODUCTS
PURCHASE
FOR USERS
COMPANY
OUR SITES
DOCUMENTATION CENTER SEARCH
Mathematica
>
Operations on Vectors
>
Built-in
Mathematica
Symbol
IdentityMatrix
KroneckerDelta
Normalize
RotationMatrix
See Also »
|
Operations on Vectors
New in 6.0: Matrix & Linear Algebra Functions
More About »
UnitVector
UnitVector
[
k
]
gives the two-dimensional unit vector in the
k
direction.
UnitVector
[
n
,
k
]
gives the
n
-dimensional unit vector in the
k
direction.
MORE INFORMATION
UnitVector
[
n
,
k
]
is a list of length
n
with a 1 in position
k
and 0s elsewhere.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
The unit vector in the
x
direction in 2 dimensions:
In[1]:=
Out[1]=
The unit vector in the
y
direction in 3 dimensions:
In[1]:=
Out[1]=
Scope
(2)
Applications
(3)
Properties & Relations
(1)
Possible Issues
(1)
SEE ALSO
IdentityMatrix
KroneckerDelta
Normalize
RotationMatrix
MORE ABOUT
Operations on Vectors
New in 6.0: Matrix & Linear Algebra Functions
New in 6
© 2008 Wolfram Research, Inc.