Riemann Zeta Function in javascript with a 1.3% accuracy error
> var zeta = require('riemann-zeta')
> zeta(0)
-0.5
> zeta(10)
1.00071
var zeta = require('riemann-zeta')
Return the riemann zeta function over s
.
With npm do:
npm install riemann-zeta
The approximation follows from the Euler-Maclaurin sum formula (Ralston and Rabinowitz, 2001 by not considering the impact of Bernoulli numbers on the calculation and taking the case when the lower limit of integration is specifically 2. Then, the approximation follows and works well enough for modern browsers and mathematical applications.