支持区间输入输出的函数
Functions to Support Input and Output of Intervals
AI总结:
本文指出区间算术依赖定向舍入,而标准I/O库缺乏十进制与二进制转换的定向舍入;作者认为向外舍入比保证一致性更简单,故从头开发十进制区间输入输出函数。
摘要:
区间算术在没有定向舍入的情况下几乎不可行,例如IEEE浮点标准所提供的定向舍入。对于区间方法而言,外部十进制数与内部二进制数之间转换时的定向舍入同样至关重要。标准输入输出库并未提供此功能。现有的转换算法能够保证转换后接着其逆转换时的一致性。尽管可能将这些算法调整用于十进制区间输入输出,但我们认为在基数转换中向外舍入在计算上比保证一致性更简单。因此,最好从头开始开发十进制区间输入输出,这正是本文所做的工作。
英文摘要:
Interval arithmetic is hardly feasible without directed rounding as provided, for example, by the IEEE floating-point standard. Equally essential for interval methods is directed rounding for conversion between the external decimal and internal binary numerals. This is not provided by the standard I/O libraries. Conversion algorithms exist that guarantee identity upon conversion followed by its inverse. Although it may be possible to adapt these algorithms for use in decimal interval I/O, we argue that outward rounding in radix conversion is computationally a simpler problem than guaranteeing identity. Hence it is preferable to develop decimal interval I/O ab initio, which is what we do in this paper.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。