[SciPy-User] bug in optimize.curve_fit ?

Pauli Virtanen pav@iki...
Fri Aug 5 03:54:08 CDT 2011


Thu, 04 Aug 2011 16:17:07 +0200, Xavier Gnata wrote:
[clip]
> def func(x, a, b, c):
>     return a*np.exp(-b*x) + c
> x = list(np.linspace(0,4,50))
> y = func(x, 2.5, 1.3, 0.5)

Your program fails already here -- before curve_fit.



More information about the SciPy-User mailing list