arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0705.4369math.NAcs.MScs.NA
收藏

浮点算术中的整数幂计算

Computing Integer Powers in Floating-Point Arithmetic

SDU, Odense, Denmark(欧登塞南丹麦大学);Laboratoire LIP, CNRS/ENS Lyon/INRIA/Univ. Lyon 1, Lyon, France(里昂第一大学/法国国家科学研究中心/法国高等师范学院/法国国家信息与自动化研究所LIP实验室)

Peter Kornerup, Vincent Lefèvre, Jean-Michel Muller

AI总结:

针对浮点算术中正整数幂的精确计算,提出两种利用融合乘加(FMA)指令的算法,实现忠实舍入,并探讨在扩展精度下获得正确舍入结果的可能性。

摘要:

我们介绍了两种算法,用于在浮点算术中精确计算正整数的幂,假设有融合乘加(fma)指令可用。我们展示了我们的对数时间算法总是产生忠实舍入的结果,讨论了获得正确舍入结果的可能性,并表明如果扩展精度可用且可以舍入到双精度(单次舍入),则可以在双精度中获得正确舍入的结果。

英文摘要:

We introduce two algorithms for accurately evaluating powers to a positive integer in floating-point arithmetic, assuming a fused multiply-add (fma) instruction is available. We show that our log-time algorithm always produce faithfully-rounded results, discuss the possibility of getting correctly rounded results, and show that results correctly rounded in double precision can be obtained if extended-precision is available with the possibility to round into double precision (with a single rounding).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑