Find a fixed point of the function.
Given a function of one or more variables and a starting point, find a fixed-point of the function: i.e. where func(x0) == x0.
Parameters : | func : function
x0 : array_like
args : tuple, optional
xtol : float, optional
maxiter : int, optional
|
---|
Notes
Uses Steffensen’s Method using Aitken’s Del^2 convergence acceleration. See Burden, Faires, “Numerical Analysis”, 5th edition, pg. 80
Examples
>>> from scipy import optimize
>>> def func(x, c1, c2):
.... return np.sqrt(c1/(x+c2))
>>> c1 = np.array([10,12.])
>>> c2 = np.array([3, 5.])
>>> optimize.fixed_point(func, [1.2, 1.3], args=(c1,c2))
array([ 1.4920333 , 1.37228132])