Commit 4d0b2035 authored by Davis King's avatar Davis King

Just moved the try block to reduce the indentation level.

parent 929870d3
...@@ -113,12 +113,8 @@ public: ...@@ -113,12 +113,8 @@ public:
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
int main() int main() try
{ {
try
{
// Set the starting point to (4,8). This is the point the optimization algorithm // Set the starting point to (4,8). This is the point the optimization algorithm
// will start out from and it will move it closer and closer to the function's // will start out from and it will move it closer and closer to the function's
// minimum point. So generally you want to try and compute a good guess that is // minimum point. So generally you want to try and compute a good guess that is
...@@ -316,10 +312,9 @@ int main() ...@@ -316,10 +312,9 @@ int main()
// globally optimal solution to 9 digits of precision: // globally optimal solution to 9 digits of precision:
cout << "complex holder table function solution y (should be 21.9210397): " << result.y << endl; cout << "complex holder table function solution y (should be 21.9210397): " << result.y << endl;
cout << "complex holder table function solution x:\n" << result.x << endl; cout << "complex holder table function solution x:\n" << result.x << endl;
} }
catch (std::exception& e) catch (std::exception& e)
{ {
cout << e.what() << endl; cout << e.what() << endl;
}
} }
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