3 ms·
After correction: 100 iterations give best_x = -1.76, best_y = 2.91, best_out = -5.15 10,000,000 iterations (less than 1 sec CPU) give best_x = 16,657, best_y
by olivier1664 12y ago
After correction:
100 iterations give best_x = -1.76, best_y = 2.91, best_out = -5.15
10,000,000 iterations (less than 1 sec CPU) give best_x = 16,657, best_y = 16,662, best_out = 277,541,583
https://jsfiddle.net/fe068f0L/ https://jsfiddle.net/fe068f0L/