Reducing truncation errors by programming
暂无分享,去创建一个
In accumulating a sum such as in a numerical integration with a large number of intervals, the sum itself becomes much larger than the individual addends. This may produce a less accurate sum as the number of intervals is increased.Separate variables can be established as accumulators to hold partial sums within various distinct intervals. Thus, the extensive successive truncations are eliminated.
[1] Lynn Yarbrough,et al. Input data organization in FORTRAN , 1962, CACM.
[2] G. J. Vasilakos. A decision matrix as the basis for a simple data input routine , 1962, CACM.