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
Dsolve shouldn't return series solutions #15916
Comments
Agree, it shouldn't do it unless you use |
Technically you can check |
I have checked Let's take a simple example: @asmeurer @oscarbenjamin should we modify the |
I think that ideally there would be a separate function for getting series solutions but it's not easy to split it out of dsolve right now. I guess some people are using this so it needs to go through deprecation. I suggest to add a new keyword argument If the user passes False then it should not give series solutions (this should become the default after deprecation). Otherwise the series_solutions argument can be a dict of values relevant to series solutions (n, x0, etc). |
For most ODE inputs
dsolve
returns an exact solution or raises NotImpementedError. Occasionally though it returns a series solution e.g.:Speaking just for myself I never want this solution when calling
dsolve
. It takes a long time to compute these solutions and there isn't any way of knowing in advance that this will happen.I think it would be better if obtaining power series solutions was handled by a separate API.
The text was updated successfully, but these errors were encountered: