A variant of fzero
. Finds a zero of a vector-valued
multivariate function where each output element only depends on the
input element with the same index (so the Jacobian is diagonal).
fun should be a handle or name of a function returning a column vector. x0 should be a two-column matrix, each row specifying two points which bracket a zero of the respective output element of fun.
If x0 is a single-column matrix then several nearby and distant
values are probed in an attempt to obtain a valid bracketing. If
this is not successful, the function fails. options is a
structure specifying additional options. Currently, vfzero
recognizes these options: "FunValCheck"
, "OutputFcn"
,
"TolX"
, "MaxIter"
, "MaxFunEvals"
. For a
description of these options, see optimset.
On exit, the function returns x, the approximate zero and fval, the function value thereof. info is a column vector of exit flags that can have these values:
output is a structure containing runtime information about the
fzero
algorithm. Fields in the structure are:
Package: optim