plots

 plot a 3-D gradient vector field

Parameters

 f - function or set of function to be plotted r1 - range r2 - range r3 - range

Description

 • A typical call to the gradplot3d function is gradplot3d(f, x=a..b, y=c..d, z=p..q), where f is a Maple expressions in x, y, and z, and $a..b$, $c..d$, and $p..q$ specifies the axes ranges of the field. The result is a three dimensional vectorfield with the gradient vector evaluated at (x, y, z) located at this point.
 • A call to gradplot3d produces a PLOT3D data structure, which is then printed.  For information on these data structures, see plot3d/structure.
 • Remaining arguments are interpreted as options which are specified as equations of the form option = value.  In particular, the arrows, grid, fieldstrength, and clipping options listed on the fieldplot3d help page are available, and all other options are interpreted as by the plot3d command. For more information, see plot3d/option.
 • gradplot3d may be defined by with(plots) or with(plots,gradplot3d). It can also be used by the name plots[gradplot3d].

Examples

 > $\mathrm{with}\left(\mathrm{plots}\right):$
 > $\mathrm{gradplot3d}\left({\left({x}^{2}+{y}^{2}+{z}^{2}+1\right)}^{\frac{1}{2}},x=-2..2,y=-2..2,z=-2..2\right)$
 > $\mathrm{gradplot3d}\left({x}^{2}+2{y}^{2}+z+1,x=-1..1,y=-1..1,z=-1..1,\mathrm{grid}=\left[5,5,5\right]\right)$

The command to create the plot from the Plotting Guide is

 > $\mathrm{gradplot3d}\left(\mathrm{sin}\left(xyz\right),x=-\mathrm{Pi}..\mathrm{Pi},y=-\mathrm{Pi}..\mathrm{Pi},z=-\mathrm{Pi}..\mathrm{Pi},\mathrm{grid}=\left[4,4,4\right],\mathrm{color}=\mathrm{black},\mathrm{arrows}=\mathrm{THICK}\right)$