<title>Relative Error</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="../backgrounders.html" title="Chapter 21. Backgrounders">
+<link rel="home" href="../index.html" title="Math Toolkit 2.11.0">
+<link rel="up" href="../backgrounders.html" title="Chapter 22. Backgrounders">
<link rel="prev" href="special_tut/special_tut_test.html" title="Testing">
<link rel="next" href="lanczos.html" title="The Lanczos Approximation">
</head>
Given an actual value <span class="emphasis"><em>a</em></span> and a found value <span class="emphasis"><em>v</em></span>
the relative error can be calculated from:
</p>
-<p>
- <span class="inlinemediaobject"><img src="../../equations/error2.svg"></span>
- </p>
+<div class="blockquote"><blockquote class="blockquote"><p>
+ <span class="inlinemediaobject"><img src="../../equations/error2.svg"></span>
+
+ </p></blockquote></div>
<p>
However the test programs in the library use the symmetrical form:
</p>
-<p>
- <span class="inlinemediaobject"><img src="../../equations/error1.svg"></span>
- </p>
+<div class="blockquote"><blockquote class="blockquote"><p>
+ <span class="inlinemediaobject"><img src="../../equations/error1.svg"></span>
+
+ </p></blockquote></div>
<p>
which measures <span class="emphasis"><em>relative difference</em></span> and happens to be less
error prone in use since we don't have to worry which value is the "true"