summaryrefslogtreecommitdiff
path: root/doc/rounding-errors.doc
diff options
context:
space:
mode:
authorsgeerke <devnull@localhost>2012-06-24 12:06:15 +0200
committersgeerke <devnull@localhost>2012-06-24 12:06:15 +0200
commit39985d2c5158742fc9e00e7dd90559f9f5c8c75f (patch)
tree1950c633fd73c1b7ef5056ed18b9dcd527552d3b /doc/rounding-errors.doc
parente02ec1bd1405715f050a71d40a9e3c212dd43123 (diff)
First part of hyphenation! And some minor changes in "lout".
Diffstat (limited to 'doc/rounding-errors.doc')
-rw-r--r--doc/rounding-errors.doc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/rounding-errors.doc b/doc/rounding-errors.doc
index 433d6ed9..133a1fe5 100644
--- a/doc/rounding-errors.doc
+++ b/doc/rounding-errors.doc
@@ -15,10 +15,10 @@ implementation would result in something, for which
because of rounding errors, due to the integer division. This can be
avoided by transforming the formula into
-\f[y_i = {(\sum_{j=0}^{j=i} x_j) a \over b} - \sum_{j=0}^{j=i} y_j\f]
+\f[y_i = {(\sum_{j=0}^{j=i} x_j) a \over b} - \sum_{j=0}^{j=i-1} y_j\f]
Of corse, when all \f$y_i\f$ are calculated in a sequence,
-\f$\sum_{j=0}^{j=i} x_j\f$ and \f$\sum_{j=0}^{j=i} y_j\f$ can be
+\f$\sum_{j=0}^{j=i} x_j\f$ and \f$\sum_{j=0}^{j=i-1} y_j\f$ can be
accumulated in the same loop.
*/ \ No newline at end of file