polynomial_test.cc | 251 double optimal_value = 0.0; local 254 MinimizePolynomial(polynomial, min_x, max_x, &optimal_x, &optimal_value); 256 EXPECT_EQ(optimal_value, 1.0); 269 double optimal_value = 0.0; local 272 MinimizePolynomial(polynomial, min_x, max_x, &optimal_x, &optimal_value); 275 EXPECT_EQ(optimal_value, 2.0); 289 double optimal_value = 0.0; local 292 MinimizePolynomial(polynomial, min_x, max_x, &optimal_x, &optimal_value); 294 EXPECT_EQ(optimal_value, -1.0/4.0); 298 MinimizePolynomial(polynomial, min_x, max_x, &optimal_x, &optimal_value); [all...] |