1.5.14 Packages for Symbolic Mathematics
There are many Mathematica packages which implement symbolic mathematical operations. This section gives a few examples drawn from the standard set of packages distributed with Mathematica. As discussed in Section 1.3.10, some copies of Mathematica may be set up so that the functions described here are automatically loaded into Mathematica if they are ever needed.
This loads the vector analysis package. In some versions of Mathematica, you may not need to load the package explicitly.
This specifies that a spherical coordinate system with coordinate names r, theta and phi should be used.
In:= SetCoordinates[Spherical[r, theta, phi]]
This evaluates the gradient of in the spherical coordinate system.
In:= Grad[r^2 Sin[theta]]
This loads the variational methods package.
This finds the functional derivative of .
In:= VariationalD[y[x] Sqrt[y'[x]], y[x], x]
This loads the quaternions package.
This finds the principal square root of a quaternion.
In:= Sqrt[Quaternion[1, 1, 1, 0]]