Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
mention stieltjes-constants in documentation of zeta
Browse files Browse the repository at this point in the history
  • Loading branch information
behackl committed Feb 4, 2016
1 parent 0e1162b commit f1d9bfa
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 f1d9bfa

Please sign in to comment.