Find the roots of a function.
Return the roots of the (non-linear) equations defined by func(x) = 0 given a starting estimate.
Parameters : | func : callable f(x, *args)
x0 : ndarray
args : tuple
fprime : callable(x)
full_output : bool
col_deriv : bool
warning : bool
|
---|---|
Returns : | x : ndarray
infodict : dict
ier : int
mesg : str
|
Notes
fsolve is a wrapper around MINPACK’s hybrd and hybrj algorithms.
From scipy 0.8.0 fsolve returns an array of size one instead of a scalar when solving for a single parameter.