Skip to content

Commit

Permalink
Trac #19836: expansion of zeta using stieltjes-constants
Browse files Browse the repository at this point in the history
With the implementation of Stieltjes-constants from #19834 the expansion
of the zeta-function can be improved to something like

{{{
sage: zeta(s).series(s==1)
1/(s-1) + euler_gamma - stieltjes(1)/2 * (s-1) + stieltjes(2)/6 *
(s-1)^2  + ...
}}}

(see https://en.wikipedia.org/wiki/Stieltjes_constants).

URL: http://trac.sagemath.org/19836
Reported by: behackl
Ticket author(s): Benjamin Hackl
Reviewer(s): Ralf Stephan
  • Loading branch information
Release Manager authored and vbraun committed Feb 5, 2016
2 parents 6a1777d + f1d9bfa commit cbabbdf
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/sage/functions/transcendental.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,20 @@ def __init__(self):
sage: a = zeta(2,hold=True); a.simplify()
1/6*pi^2
Check that :trac:`15846` is resolved::
The Laurent expansion of `\zeta(s)` at `s=1` is
implemented by means of the
:wikipedia:`Stieltjes constants <Stieltjes_constants>`::
sage: s = SR('s')
sage: zeta(s).series(s==1, 2)
1*(s - 1)^(-1) + (euler_gamma) + (-1/2*stieltjes(1))*(s - 1) + Order((s - 1)^2)
Generally, the Stieltjes constants occur in the Laurent
expansion of `\zeta`-type singularities::
sage: zeta(2*s/(s+1)).series(s==1, 2)
2*(s - 1)^(-1) + (euler_gamma + 1) + (-1/4*stieltjes(1))*(s - 1) + Order((s - 1)^2)
sage: zeta(x).series(x==1, 1)
1*(x - 1)^(-1) + (euler_gamma) + Order(x - 1)
sage: zeta(x).residue(x==1)
1
TESTS::
Expand Down

0 comments on commit cbabbdf

Please sign in to comment.