Student[VectorCalculus]
Normalize
normalize a Vector or vector field
Calling Sequence
Parameters
Description
Examples
Normalize(f, p)
f
-
Vector; specify the Vector or vector field
p
(optional) non-negative number, infinity, or Euclidean; specify the norm
The Normalize(f, p) calling sequence normalizes the Vector or vector field f with respect to the p-norm. If p is omitted, it defaults to 2. Note that if the current coordinate system (see SetCoordinates) is not cartesian, the Vector will be transformed to cartesian coordinates before the normalization is computed (see MapToBasis), and then the result will be mapped back to its original coordinate system.
If f is a vector field, the result is again a vector field that, at any point (Vector) v, evaluates to the normalized (with respect to the {p}-norm) value of f at v.
The Normalize(f,Euclidean) calling sequence is equivalent to Normalize(f,2).
with⁡StudentVectorCalculus:
Normalize⁡3,4
Normalize⁡3,4,1.5
Normalize⁡3,4,0
For vector fields, the Normalize command returns a vector field.
n≔Normalize⁡VectorField⁡x⁢y,xy,3:
evalVF⁡n,2,3
9⁢7302373073023730
SetCoordinates⁡sphericalr,φ,θ
sphericalr,φ,θ
p≔RootedVector⁡1,1,2,root=1,π2,π3
p≔112
Normalize⁡p,Euclidean
666663
Normalize⁡p,∞
12121
See Also
LinearAlgebra[Normalize]
Student[VectorCalculus][MapToBasis]
Student[VectorCalculus][Norm]
Student[VectorCalculus][SetCoordinates]
Student[VectorCalculus][Vector]
Student[VectorCalculus][VectorField]
Download Help Document