The (scalar) potential of a gradient field
Note: linalg::potential will be removed in a future release. Use potential instead.
This functionality does not run in MATLAB.
linalg::potential(f, [x1, x2, …], <[y1, y2, …]>, <Test>)
linalg::potential(f, x) determines whether the vector field is a gradient field of some scalar potential p with respect to the variables , and computes that potential if it exists.
x1, x2, …
y1, y2, …
The components of the "base point:" arithmetical expressions. If a base point is specified, the returned potential p satisfies .
linalg::potential only checks whether the vector field has a potential and returns TRUE or FALSE, respectively.