hypot(a,b)的一种改进算法
An Improved Algorithm for hypot(a,b)
摘要:
我们开发了一个快速和准确的算法来评估两个浮点数$a$和$b$的$\sqrt{a^2+b^2}$。执行此计算的库函数通常命名为{ \tt hypot(a,b)}。我们将在本文中开发的四种方法与Julia 1.1提供的当前驻留库函数以及数十年来与C数学库一起分发的代码进行比较。我们将通过仿真来证明我们的算法的性能。
英文摘要:
We develop a fast and accurate algorithm for evaluating $\sqrt{a^2+b^2}$ for two floating point numbers $a$ and $b$. Library functions that perform this computation are generally named {\tt hypot(a,b)}. We will compare four approaches that we will develop in this paper to the current resident library function that is delivered with Julia 1.1 and to the code that has been distributed with the C math library for decades. We will demonstrate the performance of our algorithms by simulation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。