Student[MultivariateCalculus][Gradient] - return the gradient at specified points
|
Calling Sequence
|
|
Gradient(f(x,y,..), [x,y,..]=[a1,b1,..], x=xmin..xmax, y=ymin..ymax, ..., opts)
Gradient(f(x,y,..), [x,y,..]=[[a1,b1,..],[a2,b2,..],..], x=xmin..xmax, y=ymin..ymax, ..., opts)
|
|
Parameters
|
|
f(x, y, ..)
|
-
|
algebraic expression
|
x, y, ..
|
-
|
name; independent variables
|
[a1, b1, ..]
|
-
|
list or list of lists of real constants or names; point(s) at which the gradient is evaluated
|
xmin, xmax, ymin, ymax, ...
|
-
|
(optional) real constants specifying range over which to plot function
|
opts
|
-
|
(optional) equation(s) of the form option=value where option is one of functionoptions, gradientoptions, gradplotoptions, output, or showfunction; specify output options
|
|
|
|
|
Description
|
|
•
|
The Gradient(f(x, y,...), [x, y,...] = [a1, b1,...]) calling sequence returns the gradient of the function f at specified points. Multiple points can be given by putting them into a list, for example, Gradient(f(x,y), [x,y] = [[1,2],[2,0]]). In the case of a function of 2 variables, the output option can be used to request that a plot or gradplot be returned.
|
•
|
If the output=plot is given (so in particular, the function expression has at most two variables), the opts argument can be used to control the appearance of the plot.
|
|
Specifies the plot or gradplot caption. The default caption is constructed from the parameters.
|
|
Specifies the plot options for plotting the function . For more information on plotting options, see plot3d/options.
|
|
Specifies the plot options for plotting the gradient of the function. For more information on plotting options, see plot3d/options.
|
|
output = value, plot, or gradplot
|
|
This option controls the return value of the function.
|
|
* output = value specifies that the value of the gradient is to be returned. Plot options are ignored if output = value. The default is output = value.
|
|
* output = plot specifies that a plot displays, which shows the function, a level curve at the point, the projection of that level curve onto the x-y plane, and a scaled vector in the direction of the gradient.
|
|
* specifies that a gradplot displays.
|
|
Specifies the plot options if the output is a gradplot. For more information on plotting options, see plot/options.
|
|
showfunction = true or false
|
|
Determines whether the function is plotted. The default is true.
|
|
Specifies the plot or gradplot title. If output = gradplot, the default is The Gradient Field. For more information on typesetting the caption, see plot/typesetting.
|
|
The default caption is constructed from the parameters and the command options. caption = "" disables the default caption. For more information about specifying a caption , see plot/typesetting.
|
|
The default title is constructed from the parameters and the command options. title = "" disables the default title. For more information about specifying a title, see plot/typesetting.
|
•
|
For information on how to change the default colors, see the Student[SetColors] help page.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
The command to create the plot from the Plotting Guide is
>
|
|
|
|