Error in Defintion of Rosenbrock Function #9442
Labels
Documentation
Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org
scipy.optimize
Milestone
The Rosenbrock function in the docs is incorrectly defined.
This occurs in the section Constrained minimization of multivariate scalar functions at https://docs.scipy.org/doc/scipy/reference/tutorial/optimize.html
The correct definition is on wikipedia: https://en.wikipedia.org/wiki/Rosenbrock_function.
The definition used in docs is:
which should be
As a verification, this block of code (with index swapped) gives the minimum as defined in the docs.
Reproducing code example:
Scipy/Numpy/Python version information:
1.1.0 1.15.1 sys.version_info(major=3, minor=6, micro=5, releaselevel='final', serial=0)
The text was updated successfully, but these errors were encountered: