计算机科学 > 离散数学
[提交于 2023年12月23日]
标题:A Spigot-Algorithm for Square-Roots: Explained and Extended
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Mayer Goldberg[v1] 2023年12月23日 星期六 20:07:24 UTC