leastSquaresFit
Fernando Pérez
fperez528 at yahoo.com
Tue Jul 9 12:55:19 EDT 2002
Alex Tournier wrote:
>
>>>> # The data to be fitted to.
> ... data = [(100, 4.999e-8),
> ... (200, 5.307e+2),
> ... (300, 1.289e+6),
> ... (400, 6.559e+7)]
>
this is a list of tuples, not an array. Many numeric functions _do not_
implicitly convert lists to arrays (though some can operate on lists as well
as arrays). Try data = Numeric.array(data) and see what happens.
f
More information about the Python-list
mailing list