SciPy

root_scalar(method=’halley’)

scipy.optimize.root_scalar(args=(), method='halley', x0=None, options={})

See also

For documentation for the rest of the parameters, see scipy.optimize.root_scalar

Options
argstuple, optional

Extra arguments passed to the objective function and its derivatives.

xtolfloat, optional

Tolerance (absolute) for termination.

rtolfloat, optional

Tolerance (relative) for termination.

maxiterint, optional

Maximum number of iterations.

x0float, required

Initial guess.

fprimebool or callable, required

If fprime is a boolean and is True, f is assumed to return the value of derivative along with the objective function. fprime can also be a callable returning the derivative of f. In this case, it must accept the same arguments as f.

fprime2bool or callable, required

If fprime2 is a boolean and is True, f is assumed to return the value of 1st and 2nd derivatives along with the objective function. fprime2 can also be a callable returning the 2nd derivative of f. In this case, it must accept the same arguments as f.

options: dict, optional

Specifies any method-specific options not covered above

Previous topic

root_scalar(method=’secant’)

Next topic

scipy.optimize.fixed_point