-
-
Notifications
You must be signed in to change notification settings - Fork 628
Adding the polylogarithm as lazy series #40141
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
Conversation
@mantepse Another special function example. I might need to rename the method to |
Would it be a good idea to have |
No, then it is not an alias. 2 also isn't a particularly special value for the Separately, calling the method |
f6100ff
to
d23761b
Compare
I think it would be good to be consistent with the naming in any case. Currently, I get:
which I find surprising. |
I would rather remove |
The issue with the SR output is coming from the fact it is first doing stuff as Python
I've fixed this by converting I think it is good to have a verbose version. It doesn't really hurt the auto-completion. However, this is not a strong opinion, so you still want to remove the long form? |
ddd352d
to
59b1913
Compare
I would either remove the long form or add the long form in the other cases, although I tend to removal. I know that it's only me, but having many completions in the emacs buffer (I don't know other environments) is a nuisance. I need to check whether the methods are really the same when I am looking for something. (I also dislike aliases when debugging - but this doesn't really apply here). I find the definitions of a method by doing |
Okay, I have changed it to only use the short form. I guess this is consistent with the other special functions (e.g., log) too. I added a few other examples of identities I found online. |
Possibly (but certainly not in this PR) we should warn in the doc of
Not sure. Doing things twice is not good either. |
#40093 has extra whitespace, apart from that this looks great! |
Adding a warning about this is definitely good. Although it isn’t doing anything twice and passing an Since the whitespace is on the dependency, it is taken care of on that PR. Hence, you can set this to a positive review. |
d947e6f
to
ea8d580
Compare
Documentation preview for this PR (built with commit ea8d580; changes) is ready! 🎉 |
sagemathgh-40141: Adding the polylogarithm as lazy series <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> Another special function that is important in many areas of math. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> - sagemath#40093: Adds to the same places in the files. URL: sagemath#40141 Reported by: Travis Scrimshaw Reviewer(s):
sagemathgh-40141: Adding the polylogarithm as lazy series <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> Another special function that is important in many areas of math. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> - sagemath#40093: Adds to the same places in the files. URL: sagemath#40141 Reported by: Travis Scrimshaw Reviewer(s):
Another special function that is important in many areas of math.
📝 Checklist
⌛ Dependencies