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

Series raises an error at infinity for an example which can be solved by aseries #21938

Closed
0sidharth opened this issue Aug 24, 2021 · 0 comments · Fixed by #21948
Closed

Series raises an error at infinity for an example which can be solved by aseries #21938

0sidharth opened this issue Aug 24, 2021 · 0 comments · Fixed by #21948
Labels

Comments

@0sidharth
Copy link
Member

As the title suggests -

In [1]: a = sin(1/x + exp(-x)) - sin(1/x)

In [2]: a
Out[2]: 
     ⎛1⎞      ⎛ -x   1- sin⎜─⎟ + sin   + ─⎟
     ⎝x⎠      ⎝      xIn [3]: a.series(x, oo)
---------------------------------------------------------------------------
PoleError                                 Traceback (most recent call last)

(truncated)

PoleError: Cannot expand sin(_x + exp(-1/_x)) around 0

In [4]: a.aseries(x)
Out[4]: 
⎛  1      11        ⎞⎞  -x
⎜───── - ──── + 1 + O⎜──; x → ∞⎟⎟⋅4      26       ⎟⎟    
⎝24x    2xx        ⎠⎠    

If aseries is able to calculate the answer, series should call it and return that.

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

Successfully merging a pull request may close this issue.

2 participants