为什么你不能用Common Lisp写一个“区间算术“库
Why You Cannot (Yet) Write an "Interval Arithmetic" Library in Common Lisp
摘要:
“区间算术“(IA)似乎是一个有用的数值工具,在几个应用程序中。遗憾的是,当前的IA描述和建议的标准总是根据IEEE-754标准制定的,并且大多数Common Lisp实现的IEEE-754兼容性状态没有达到标准。一种解决方案是使Common Lisp实现遵循语言独立算术(LIA)IEC标准,该标准包括IEEE/754。虽然LIA标准为Common Lisp提供了一组建议的绑定,但如果一个实现决定遵守这些规定,那么Common Lisp程序员并不容易使用规范文档的格式和深度。此外,每个实现都有很大的自由度来提供LIA“环境”设置。如果CommonLisp社区就如何在实现中提供LIA兼容性达成更精确的一致,这将是最有益的。在这种情况下,可以提供一套新的文档或手册,以HyperSpec的风格,为Common Lisp程序员的利益。
英文摘要:
"Interval Arithmetic" (IA) appears to be a useful numerical tool to have at hand in several applications. Alas, the current IA descriptions and proposed standards are always formulated in terms of the IEEE-754 standard, and the status of IEEE-754 compliance of most Common Lisp implementations is not up to par. A solution would be for Common Lisp implementations to adhere to the Language Independent Arithmetic} (LIA) IEC standard, which includes IEEE/754. While the LIA standard provides a set of proposed bindings for Common Lisp, the format and depth of the specification documents is not readily usable by a Common Lisp programmer, should an implementation decide to comply with the provisions. Moreover, much latitude is left to each implementation to provide the LIA "environmental" setup. It would be most beneficial if more precision were agreed upon by the Common Lisp community about how to provide LIA compliance in the implementations. In that case, a new set of documentation or manuals in the style of the HyperSpec could be provided, for the benefit of the Common Lisp programmer.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。