scipy 1.10.1 Pypi GitHub Homepage
Other Docs

NotesParametersReturns
newton(func, x0, fprime=None, args=(), tol=1.48e-08, maxiter=50, fprime2=None, x1=None, rtol=0.0, full_output=False, disp=True)

Notes

Parameters

func : callable
x0 : float, sequence, or ndarray
fprime : callable, optional
args : tuple, optional
tol : float, optional
maxiter : int, optional
fprime2 : callable, optional
x1 : float, optional
rtol : float, optional
full_output : bool, optional
disp : bool, optional

Returns

root : float, sequence, or ndarray
r : `RootResults`, optional
converged : ndarray of bool, optional
zero_der : ndarray of bool, optional

See Also

root

root_scalar

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/optimize/_zeros_py.py#94
type: <class 'function'>
Commit: