Divergence - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


VectorCalculus

  

Divergence

  

compute the divergence of a vector field

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Divergence(F)

Parameters

F

-

(optional) vector field or a Vector valued procedure; specify the components of the vector field

Description

• 

The Divergence(F) command computes the divergence of the vector field F.  This is a synonym for Del·F or DotProduct(Del, F).

• 

If F is a Vector valued procedure, the default coordinate system is used, and it must be indexed by the coordinate names.  Otherwise, F must be a Vector with the vectorfield attribute set, and it must have a coordinate system attribute that is indexed by the coordinate names.

• 

If F is a procedure, the returned object is a procedure. Otherwise, the returned object is an expression.

• 

The Divergence() command returns the differential form of the divergence operator in the current coordinate system.  For more information, see SetCoordinates.

Examples

withVectorCalculus:

SetCoordinatescartesianx,y,z

cartesianx,y,z

(1)

FVectorFieldx2,y2,z2

DivergenceF

2x+2y+2z

(2)

Divergence

xVF 1x,y,z+yVF 2x,y,z+zVF 3x,y,z

(3)

Del·F

2x+2y+2z

(4)

·F

2x+2y+2z

(5)

DotProductDel,F

2x+2y+2z

(6)

Divergencex,y,zPositionVectorsinx,cosy,tanz

x,y,zcosxsiny+1+tanz2

(7)

SetCoordinatespolarr,θ

polarr,θ

(8)

Divergencer,θfr,θ,gr,θ

r,θ→fr,θ+rrfr,θ+θgr,θr

(9)

See Also

convert/PhysicsVectors

Physics/Vectors

Physics/Vectors/Divergence

VectorCalculus

VectorCalculus[Curl]

VectorCalculus[Del]

VectorCalculus[DotProduct]

VectorCalculus[Gradient]

VectorCalculus[Laplacian]

VectorCalculus[SetCoordinates]

VectorCalculus[Vector]

VectorCalculus[VectorField]