powered by
laplacian(f, x0, h = 1e-4, ...)
f
Assumes that the function has continuous partial derivatives.
fderiv
hessian
f <- function(x) x[1]^2 + 2*x[1]*x[2] + x[2]^2 laplacian(f, c(1,1))
Run the code above in your browser using DataLab