函数 zeta #

使用黎曼函数方程,计算复平面上所有值的黎曼 Zeta 函数,使用无限级数。

基于 Xavier Gourdon 和 Pascal Sebah 的论文 ( http://numbers.computation.free.fr/Constants/Miscellaneous/zetaevaluations.pdf )

由 Anik Patel 实现并略作修改

注意:此实现精确到大约 6 位数字。

Syntax #

math.zeta(n)

Parameters #

Parameter Type Description
s 数字 | 复数 | 大数 黎曼 Zeta 函数的实数、复数或大数参数

Returns #

Type Description
数字 | 复数 | 大数 黎曼 Zeta 函数 s 的值

Throws #

Type | Description —- | ———–

Examples #

math.zeta(5)       // returns 1.0369277551433895
math.zeta(-0.5)    // returns -0.2078862249773449
math.zeta(math.i)  // returns 0.0033002236853253153 - 0.4181554491413212i

另请参阅 #

erf

Fork me on GitHub