arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.15338cs.DM
收藏

平方根的一种Spigot算法:解释与扩展

A Spigot-Algorithm for Square-Roots: Explained and Extended

Mayer Goldberg

AI总结:

本文解释并扩展了一种仅用加减法逐位计算平方根的Spigot算法,给出正确性证明,并提出立方根及任意r次根的推广与优化方法。

摘要:

本文介绍并扩展了一种已知的用于逐位计算平方根的Spigot算法,该算法仅使用加法和减法,适合手算或使用算盘。我们为原始算法提供了一个初等正确性证明,然后提出了相应的用于计算立方根的Spigot算法。最后,我们对该算法进行推广,以求解r次根,并展示了如何针对任意r优化该算法。所得算法仅需整数加法和减法。

英文摘要:

This work presents and extends a known spigot-algorithm for computing square-roots, digit-by-digit, that is suitable for calculation by hand or an abacus, using only addition and subtraction. We offer an elementary proof of correctness for the original algorithm, then present a corresponding spigot-algorithm for computing cube-roots. Finally, we generalize the algorithm, so as to find $r$-th roots, and show how to optimize the algorithm for any $r$. The resulting algorithms require only integer addition and subtraction.

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

↑