aboutsummaryrefslogtreecommitdiff
path: root/doc/rounding-errors.doc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2012-09-13 12:35:54 +0200
committerSebastian Geerken <devnull@localhost>2012-09-13 12:35:54 +0200
commit94e451ffa5ece79a3b071ee553650bf8bd869a46 (patch)
treef07d031111d6dd4e3a960f882606bfab1c56fdbd /doc/rounding-errors.doc
parent1fbc6981b2372216304c22430a3898100962f01f (diff)
parentcb4003e1cac5abfbc7b02cb57d4663d976ef8550 (diff)
Merge of http://flpsed.org/hgweb/dillo_hyphen/
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