[SciPy-user] optimize.leastsq()

James R. Phillips zunzun at zunzun.com
Fri Oct 22 15:52:52 CDT 2004


> Thanks for your suggestion. Here is another version
> of your code, just a bit more 'vectorized':
>
> transpose(array([[1]*11, xdata, xdata*xdata]))  # y = 1 + x + x*x

The comment at the end of this line is not quite correct, I think.
Look at the one in the original example again and see what you
make of the difference.

     James Phillips
     http://zunzun.com



More information about the SciPy-user mailing list