Home | History | Annotate | Download | only in examples

Lines Matching defs:x3

36 //   f2 = sqrt(5) * (x3 - x4)
37 // f3 = (x2 - 2*x3)^2
40 // The starting values are x1 = 3, x2 = -1, x3 = 0, x4 = 1.
41 // The minimum is 0 at (x1, x2, x3, x4) = 0.
69 template <typename T> bool operator()(const T* const x3,
72 // f2 = sqrt(5) (x3 - x4)
73 residual[0] = T(sqrt(5.0)) * (x3[0] - x4[0]);
82 // f3 = (x2 - 2 x3)^2
107 double x3 = 0.0;
119 &x3, &x4);
122 &x2, &x3);
139 << ", x3 = " << x3
150 << ", x3 = " << x3