Bernoulli数、正切数和割线数的快速计算
Fast computation of Bernoulli, Tangent and Secant numbers
摘要:
我们考虑计算伯努利,正切(zag)和割线(zig或欧拉)数。特别地,我们给出了计算前n个这样的数字的渐近快速算法,时间复杂度为O(n^2)。(log n)^(2+o(1)位操作。我们还给出了非常短的就地算法,用于计算O(n^2)整数运算中的前n个切线或正割数。这些算法非常简单,并且对于中等的n值是快速的。它们比Atkinson(用于切线和正割数)和Akiyama和Tanigawa(用于伯努利数)的算法更快,占用的空间更少。
英文摘要:
We consider the computation of Bernoulli, Tangent (zag), and Secant (zig or Euler) numbers. In particular, we give asymptotically fast algorithms for computing the first n such numbers in O(n^2.(log n)^(2+o(1))) bit-operations. We also give very short in-place algorithms for computing the first n Tangent or Secant numbers in O(n^2) integer operations. These algorithms are extremely simple, and fast for moderate values of n. They are faster and use less space than the algorithms of Atkinson (for Tangent and Secant numbers) and Akiyama and Tanigawa (for Bernoulli numbers).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。