scipy/scipy — pull request #176 by dlaxalde (2012-03-05 16:15:39+00:00)
Title: BUG: fix handling of extra arguments when function and jacobian are combined in TNC and L-BFGS-B

At the moment, if the objective function also returns the gradient as: `fun(x, a) -> f, fprime`, TNC and L-BFGS-B don't work.

This PR adds tests for these cases and fixes the issue.