VectorCalculus[Normalize] - normalize a Vector or vector field
|
Calling Sequence
|
|
Normalize(v, p)
|
|
Parameters
|
|
v
|
-
|
Vector(algebraic); Vector to be normalized
|
p
|
-
|
(optional) nonnegative, infinity, or identical(Euclidean); the norm to use
|
|
|
|
|
Description
|
|
•
|
The Normalize(v, p) command normalizes the Vector or vector field v with respect to the p-norm. If p is omitted, it defaults to 2.
|
•
|
If v is a RootedVector, it is normalized in the corresponding vector space, that is, relative to the root point of that vector space. See VectorCalculus details for more information about rooted vectors.
|
•
|
The 2-norm can also be specified using the value Euclidean for the parameter p.
|
•
|
If the p-norm of the input Vector v is 0, then v is returned.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
>
|
|
| (4) |
>
|
|
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
>
|
|
| (8) |
|
|
Download Help Document
Was this information helpful?