Lines Matching defs:x2
92 const double x2 = state[1];
98 << "x2=" << x2 << ", "
102 const double f1 = x1 + 10.0 * x2;
104 const double f3 = pow(x2 - 2.0 * x3, 2.0);
144 2.0*(x2 - 2.0*x3)*(1.0 - 2.0*x3),
152 2.0*(x2 - 2.0*x3)*(x2 - 2.0),
173 gradient[column_index++] = f1 * 10.0 + f3 * 2.0 * (x2 - 2.0 * x3);
178 f2 * sqrt(5.0) + f3 * (2.0 * 2.0 * (2.0 * x3 - x2));
251 // The minimum is at x1 = x2 = x3 = x4 = 0.