Gradient, Divergence, and Curl
One approach for implementing differential operators is to use association. Here we associate the standard definitions of the gradient, divergence, and curl (in three-dimensional Cartesian coordinates) to the symbol :
We use the symbol instead of (), because is a prefix operator, and instead of ().
The set of buttons,
can be converted into a palette using Generate Palette from Selection under the File menu. Using buttons or palettes simplifies standard vector operator computations. Here we prove that the curl of the gradient of an arbitrary (differentiable) scalar field, , vanishes.
For an arbitrary (differentiable) vector field:
it is easy to prove vector identities such as
This approach is advantageous because
1. it is easy to define rules that closely correspond to usual mathematical notation;
2. the use of a palette or buttons makes application of the rules easy;
3. it is simple to modify these rules to implement operators in different coordinate systems.
An alternative approach is to use the <<Utilities`Notation` package. See the Notation Maker documentation included with the Notebook Demos in the Help Browser.
Converted by Mathematica September 30, 1999 [Prev Page][Next Page]