Commit 594fa8c7 authored by Davis King's avatar Davis King

Fixed typo in comment

parent 3e781f6f
......@@ -225,7 +225,7 @@ namespace dlib
// Suppose we want to find which of these functions, F() and G(), have
// the largest output and what input is necessary to produce the
// maximal output.
auto F = [](double a, double b) { return -std::pow(a-2,2.0) - std::pow(a-4,2.0); };
auto F = [](double a, double b) { return -std::pow(a-2,2.0) - std::pow(b-4,2.0); };
auto G = [](double x) { return 2-std::pow(x-5,2.0); };
// We first define function_spec objects that specify bounds on the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment