numerical.grad
gradient of a function
Description
Calculate the gradient of a function by simple epsilon differencing.
Usage
numerical.grad(func,x, eps=1e-12)
Required Arguments
- func
-
A function with a real result.
- x
-
A real or real vector argument to func, indicating the point at which the
gradient is to be calculated.
Optional Arguments
- eps
-
The epsilon difference to use for calculating the gradient.
Value
A real or real vector of the calculated gradient.
See Also
Examples
return to Table of Contents