laplacian(f, x0, h = .Machine$double.eps^(1/4), ...)
Arguments
f
univariate function of several variables.
x0
point in $R^n$.
h
step size.
...
variables to be passed to f.
Value
Real number.
Details
Computes the Laplacian operator $f_{x_1 x_1} + \ldots + f_{x_n x_n}$
based on the three-point central difference formula, expanded to this
special case.
Assumes that the function has continuous partial derivatives.
References
Fausett, L. V. (2007). Applied Numerical Analysis Using Matlab.
Second edition, Prentice Hall.