dlaxalde/scipy — comment on commit 15755a5751721299aa2eb736a240fcc25030de68
File: doc/source/tutorial/optimize.rst line 207
By WarrenWeckesser:

diagonal[0] is wrong (see http://projects.scipy.org/scipy/ticket/1248) ; this should be:

diagonal[0] = 1200*x[0]**2 - 400*x[1] + 2

Not your mistake, but perhaps you can fix this along with the rest of your changes.