1.0.0 • Published 9 years ago

riemann-zeta v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
9 years ago

zeta

Riemann Zeta Function in javascript with a 1.3% accuracy error

browser support

Build Status

example

> var zeta = require('riemann-zeta')
> zeta(0)
-0.5
> zeta(10)
1.00071

methods

var zeta = require('riemann-zeta')

zeta(s)

Return the riemann zeta function over s.

install

With npm do:

npm install riemann-zeta

license

MIT

credits

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.