3 ms·
The first snippet also doesn't balance the parenthesis s += 100. * x[i + 1] - x[i] ** 2.) ** 2. + (1 - x[i]) ** 2
by kristofferc 8y ago
The first snippet also doesn't balance the parenthesis
s += 100. * x[i + 1] - x[i] ** 2.) ** 2. + (1 - x[i]) ** 2