Takes the approximate derivative for a given function
derivative(g, x, delta = 1e-07)
Arguments
| g |
the derivative of the function to minimize, where dg(u, ...) is the function evaluated at u. |
| x |
value to evaluate the derivative at |
| delta |
defaults to 10e-8 |