(x0,x1)
| 33 | # It has a bunch of local minima, with the global minimum resulting in |
| 34 | # holder_table()==-19.2085025679. |
| 35 | def holder_table(x0,x1): |
| 36 | return -abs(sin(x0)*cos(x1)*exp(abs(1-sqrt(x0*x0+x1*x1)/pi))) |
| 37 | |
| 38 | # Find the optimal inputs to holder_table(). The print statements that follow |
| 39 | # show that find_min_global() finds the optimal settings to high precision. |