Description Usage Arguments Details Value Examples
Provides numerical gradients and jacobians.
1 2 |
x0 |
point as a vector where the gradient is to be calculated. |
fn |
scalar function of one or several variables. |
heps |
step size to be used. |
... |
additional arguments passed to the function. |
Both functions apply the “central difference formula” with step size as recommended in the literature.
grad
returns the gradient as a vector; jacobian
returns the
Jacobian as a matrix of usual dimensions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.