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
Added aseries support for error functions #20888
Conversation
✅ Hi, I am the SymPy bot (v161). I'm here to help you write a release notes entry. Please read the guide on how to write release notes. Your release notes are in good order. Here is what the release notes will look like:
This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.8. Click here to see the pull request description that was parsed.
Update The release notes on the wiki have been updated. |
EDIT: So I think the issue is mainly with the symbolic form, and how sympy handles Order, and not related to the series code.
Is indeed Current status: In [1]: erf(x).series(x, oo)
Out[1]:
⎛1 ⎞
1 + O⎜──; x → ∞⎟
⎜ 6 ⎟
⎝x ⎠ Reposting from gitter -
which is what I am expecting, but on returning this expression changes to
I think the answer sympy is finally returning is wrongly simplified and the original expression is better. This conversion is happening in I have tried a few things to make sympy output the desired expressions instead, but none of them worked and I am stuck. I would appreciate any help. |
44d1ba5
to
2447a53
Compare
2447a53
to
5239e18
Compare
I agree. Asymptotic series are currently not handled in a satisfactory way. (The docstring of It seems to me that the series expansion code in Lines 3029 to 3032 in b6a1a3f
only if there s1 has no (embedded) Order term.
|
ff77768
to
f24a426
Compare
Looks good, thanks! I have enabled auto-merge. |
Looks like a test from ode took a long time on the CI -
However, I tried running this entire file again locally and it finished in the expected time -
I don't think it is an issue with the PR because as I said I tried it again (although master has not been merged), so is this a known thing? What could be the possible cause of this? |
I got 106 sec on master and 103 sec on this branch, which I think is normal variation. I cannot see any connection with this PR. |
References to other Issues or PRs
Continuing #17303
Brief description of what is fixed or changed
Added series support for error functions
Other comments
Release Notes
aseries
expansion to error functions