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

精确的逐位构造算法用于整数e次根提取

Exact Constructive Digit-by-Digit Algorithms for Integer $e$-th Root Extraction

National Institute of Technology Karnataka, Surathkal(卡纳塔克国家技术学院)

Suresan Pareth

AI总结:

本文提出了一种基于整数运算的精确e次根提取算法,通过构造性方法保证计算的精确性和稳定性,适用于符号计算和硬件实现。

摘要:

我们提出了一种统一的构造性逐位框架,仅使用整数运算即可进行精确的根提取。核心贡献是为分数平方根算法建立完整的正确性理论,证明每个计算的十进制数字都是精确且最终的,并在计算k位后给出一个尖锐的截断误差界为10^{-k}。我们进一步开发了一种基于不变量的框架,用于计算非负整数N的整数e次根⌊N^{1/e}⌋,对于任意固定的指数e≥2,该方法直接来源于二项式定理。该方法扩展了经典的长除法平方根算法,保持计算过程中的构造性余数不变量,并提供了一个精确的判断完美e次幂的决策过程。我们还解释了为什么精确的逐位分数提取使用不可逆的数字仅在平方根(e=2)时结构上是可能的,而更高阶的根(e≥3)表现出非线性耦合,这阻止了在缩放下数字的稳定性。所有证明都是在构造性、算法一致的 manner 中进行的,符合Bishop风格的构造性数学,从而得到明确的算法见证、可判定的谓词和保证的终止性。所得到的算法不需要除法或浮点运算,适用于符号计算、验证的精确算术、教育讲解和数字硬件实现。

英文摘要:

We present a unified constructive digit-by-digit framework for exact root extraction using only integer arithmetic. The core contribution is a complete correctness theory for the fractional square root algorithm, proving that each computed decimal digit is exact and final, together with a sharp truncation error bound of $10^{-k}$ after $k$ digits. We further develop an invariant-based framework for computing the integer $e$-th root $\lfloor N^{1/e} \rfloor$ of a non-negative integer $N$ for arbitrary fixed exponents $e \ge 2$, derived directly from the binomial theorem. This method generalizes the classical long-division square root algorithm, preserves a constructive remainder invariant throughout the computation, and provides an exact decision procedure for perfect $e$-th power detection. We also explain why exact digit-by-digit fractional extraction with non-revisable digits is structurally possible only for square roots ($e=2$), whereas higher-order roots ($e \ge 3$) exhibit nonlinear coupling that prevents digit stability under scaling. All proofs are carried out in a constructive, algorithmic manner consistent with Bishop-style constructive mathematics, yielding explicit algorithmic witnesses, decidable predicates, and guaranteed termination. The resulting algorithms require no division or floating-point operations and are well suited to symbolic computation, verified exact arithmetic, educational exposition, and digital hardware implementation.

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

↑