Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expansion of zeta using stieltjes-constants #19836

Closed
behackl opened this issue Jan 5, 2016 · 14 comments
Closed

expansion of zeta using stieltjes-constants #19836

behackl opened this issue Jan 5, 2016 · 14 comments

Comments

@behackl
Copy link
Member

behackl commented Jan 5, 2016

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).

Depends on #19834

CC: @rwst

Component: symbolics

Author: Benjamin Hackl

Branch/Commit: f1d9bfa

Reviewer: Ralf Stephan

Issue created by migration from https://trac.sagemath.org/ticket/19836

@behackl behackl added this to the sage-7.0 milestone Jan 5, 2016
@behackl
Copy link
Member Author

behackl commented Jan 5, 2016

comment:1

I suppose that---given the stieltjes-function is implemented in pynac---this only requires a change in the zeta1_series function in pynac.

I think I can adapt this and make a pull request on github; at least if there is a stieltjes-function.

@rwst
Copy link

rwst commented Jan 6, 2016

Dependencies: #19834

@rwst
Copy link

rwst commented Jan 6, 2016

comment:2

Yes. Dependency is set. This ticket would then just add doctesting of the expansion.

@behackl
Copy link
Member Author

behackl commented Jan 17, 2016

comment:3

I've created a pull request here. Assuming this gets merged into pynac, the doctest here:
https://github.com/sagemath/sage-prod/blob/master/src/sage/functions/transcendental.py#L81-L82
will fail and has to be removed in the ticket where pynac is updated.

This ticket here would then add the respective doctest of the form

sage: zeta(x).series(x==1, 4)
1*(x - 1)^(-1) + (euler_gamma) + (-1/2*stieltjes(1))*(x - 1) + (1/6*stieltjes(2))*(x - 1)^2 + (-1/24*stieltjes(3))*(x - 1)^3 + Order((x - 1)^4)

Or do you suggest a different procedure?

@rwst
Copy link

rwst commented Jan 17, 2016

comment:4

Replying to @behackl:

Or do you suggest a different procedure?

It's fine. Maybe add one of the examples I just asked about in the pull requests.

@rwst
Copy link

rwst commented Jan 18, 2016

comment:5

With the changes I get this, correct?

sage -t src/sage/functions/transcendental.py
**********************************************************************
File "src/sage/functions/transcendental.py", line 81, in sage.functions.transcendental.Function_zeta.__init__
Failed example:
    zeta(x).series(x==1, 1)
Expected:
    1*(x - 1)^(-1) + (euler_gamma + log(2) + log(pi) + 2*zetaderiv(1, 0)) + Order(x - 1)
Got:
    1*(x - 1)^(-1) + (euler_gamma) + Order(x - 1)
**********************************************************************

@behackl
Copy link
Member Author

behackl commented Jan 18, 2016

comment:6

Replying to @rwst:

With the changes I get this, correct?

sage -t src/sage/functions/transcendental.py
**********************************************************************
File "src/sage/functions/transcendental.py", line 81, in sage.functions.transcendental.Function_zeta.__init__
Failed example:
    zeta(x).series(x==1, 1)
Expected:
    1*(x - 1)^(-1) + (euler_gamma + log(2) + log(pi) + 2*zetaderiv(1, 0)) + Order(x - 1)
Got:
    1*(x - 1)^(-1) + (euler_gamma) + Order(x - 1)
**********************************************************************

Exactly, that is the doctest I mentioned above.

@behackl
Copy link
Member Author

behackl commented Feb 4, 2016

Author: Benjamin Hackl

@behackl
Copy link
Member Author

behackl commented Feb 4, 2016

Commit: f1d9bfa

@behackl
Copy link
Member Author

behackl commented Feb 4, 2016

@behackl
Copy link
Member Author

behackl commented Feb 4, 2016

comment:7

I've adapted the documentation of zeta(s) in order to reflect the special expansion at s==1; everything else has already happened on other tickets. :-)


New commits:

bdac71f19834: implement symbolic Stieltjes constants
0e1162bMerge tag '7.1.beta1' into symbolics/stieltjes-constants
f1d9bfamention stieltjes-constants in documentation of zeta

@rwst
Copy link

rwst commented Feb 5, 2016

Reviewer: Ralf Stephan

@rwst
Copy link

rwst commented Feb 5, 2016

comment:8

LGTM.

@rwst rwst modified the milestones: sage-7.0, sage-7.2 Feb 5, 2016
@vbraun
Copy link
Member

vbraun commented Feb 6, 2016

Changed branch from u/behackl/functions/zeta-stieltjes-doc to f1d9bfa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants