<title>Locating Function Minima using Brent's algorithm</title>
<link rel="stylesheet" href="../math.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
-<link rel="home" href="../index.html" title="Math Toolkit 2.10.0">
-<link rel="up" href="../root_finding.html" title="Chapter 9. Root Finding & Minimization Algorithms">
+<link rel="home" href="../index.html" title="Math Toolkit 2.11.0">
+<link rel="up" href="../root_finding.html" title="Chapter 10. Root Finding & Minimization Algorithms">
<link rel="prev" href="bad_roots.html" title="Examples Where Root Finding Goes Wrong">
<link rel="next" href="root_comparison.html" title="Comparison of Root Finding Algorithms">
</head>
speed and precision.
</p></td></tr>
</table></div>
-<p>
- <span class="inlinemediaobject"><img src="../../graphs/brent_test_function_1.svg" align="middle"></span>
- </p>
+<div class="blockquote"><blockquote class="blockquote"><p>
+ <span class="inlinemediaobject"><img src="../../graphs/brent_test_function_1.svg" align="middle"></span>
+
+ </p></blockquote></div>
<p>
First an include is needed:
</p>
for example:
</p>
<pre class="programlisting"><span class="comment">//! Compare if value got is close to expected,</span>
-<span class="comment">//! checking first if expected is very small </span>
+<span class="comment">//! checking first if expected is very small</span>
<span class="comment">//! (to avoid divide by tiny or zero during comparison)</span>
<span class="comment">//! before comparing expect with value got.</span>