algorithmsbooks / optimization

Errata for Algorithms for Optimization book
68 stars 16 forks source link

Algorithm 3.2 #2

Closed hurak closed 5 years ago

hurak commented 5 years ago

Algorithm 3.2 on page 39.

Inside the body of the function fibonacci_search, the φ parameter is used on the second line but it is neither defined in the code nor supplied as an input argument to the function.

tawheeler commented 5 years ago

Thanks for the issue! That variable is defined in Base.MathConstants. We use a global include on that package. It may very well be worth mentioning this in the caption.

tawheeler commented 5 years ago

I added a note in the caption. Thank you!