Dillo v3.1.1-98-g318d1f14
|
(Probably, this is a standard algorithm, so if someone knows the name, drop me a note.)
If something like
is to be calculated, and all numbers are integers, a naive 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
Of corse, when all are calculated in a sequence, and can be accumulated in the same loop. Regard this as sample: