Normalize - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


VectorCalculus

  

Normalize

  

normalize a Vector or vector field

 

Calling Sequence

Parameters

Description

Examples

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

> 

with⁡VectorCalculus:

> 

SetCoordinates⁡cartesianx,y:

> 

Normalize⁡3,4

35ex+45ey

(1)
> 

n≔Normalize⁡VectorField⁡x⁢y,xy,3

n≔x⁢y⁢yxy6+113e_x+x⁢yxy⁢y6+113e_y

(2)
> 

simplify⁡evalVF⁡n,2,3

9⁢7302373073023730

(3)
> 

SetCoordinates⁡cartesianx,y,z:

> 

Normalize⁡2,0,3,0

1ex+0ey+32ez

(4)
> 

SetCoordinates⁡sphericalr,φ,θ:

> 

Normalize⁡PositionVector⁡1,π2,π3,Euclidean

12320

(5)
> 

v≔Normalize⁡PositionVector⁡2,π3,π4,∞

v≔1163

(6)
> 

Norm⁡v,∞

1

(7)
> 

SetCoordinates⁡polarr,θ:

> 

Normalize⁡RootedVector⁡root=1,2,a,b

aa2+b2ba2+b2

(8)

See Also

LinearAlgebra[Norm]

Physics

PositionVector

RootedVector

Vector

VectorCalculus

VectorCalculus details

VectorCalculus[Norm]

VectorCalculus[SetCoordinates]

VectorField