richardson.grad
gradient of a function
Description
Calculate the gradient of a function by Richardson improvement.
Usage
richardson.grad(func,x, d=0.01, eps=1e-4, r=6, show.details=F)
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
- d eps
-
The epsilon interval value used for the first Richardson iteration is set
to d*x or eps if x is 0.0.
- r
-
The number of Richardson improvement iterations.
- show.details
-
If T intermediate calculations are printed.
Value
A real or real vector of the calculated gradient.
See Also
Examples
return to Table of Contents