mandli / intro-numerical-methods

Jupyter notebooks and other materials developed for the Columbia course APMA 4300
Creative Commons Attribution 4.0 International
278 stars 398 forks source link

Error in Bracketing Algorithm- Basic Idea #32

Closed dragonyanglong closed 8 years ago

dragonyanglong commented 8 years ago

I saw you revised this part before, but it did not look correct.

If $f(x_2) < f(x_1)$ then we know the minimum is between $x_0$ and $x_2$. If $f(x_2) > f(x_1)$ then we know the minimum is between $x_1$ and $x_3$.

Should not the sign be reversed?

mandli commented 8 years ago

Dang, I changed this so that is was correct but then went back and changed my indices incorrectly. Thanks for catching this. You get a sticker.