linalg(deprecated)/potential - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : linalg(deprecated)/potential

linalg(deprecated)

  

potential

  

compute the potential of a vector field

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

potential(f, var, 'V')

Parameters

f

-

vector field

var

-

list of variables

'V'

-

name in which the potential is returned

Description

• 

Important: The linalg package has been deprecated. Use the superseding command VectorCalculus[VectorPotential], instead.

  

- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.

• 

The function potential determines whether a given vector function is derivable from a scalar potential, and determines that potential if it exists.

• 

The function returns true if the function f has a scalar potential, and false if it does not.

• 

If a scalar potential for f exists, it will be assigned to the name given in the third argument V.  If potential returns true, then V will be assigned a scalar function such that grad V = f.

• 

The command with(linalg,potential) allows the use of the abbreviated form of this command.

Examples

Important: The linalg package has been deprecated. Use the superseding command VectorCalculus[VectorPotential], instead.

> 

with⁡linalg:

> 

f≔2⁢x⁢y+y3,x2+3⁢x⁢y2

f≔y3+2⁢x⁢y,3⁢x⁢y2+x2

(1)
> 

potential⁡f,x,y,F

true

(2)
> 

F

y⁢x⁢y2+x2

(3)
> 

g≔2⁢x,2⁢y,2⁢z

g≔2⁢x,2⁢y,2⁢z

(4)
> 

potential⁡g,x,y,z,G

true

(5)
> 

G

x2+y2+z2

(6)

See Also

linalg(deprecated)[grad]

linalg(deprecated)[vecpotent]

LinearAlgebra

VectorCalculus[ScalarPotential]