Skip to content

Commit

Permalink
XXX for issue 1262
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Feb 20, 2023
1 parent f7c0512 commit 39f783f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions diofant/functions/elementary/exponential.py
Expand Up @@ -377,6 +377,8 @@ def _eval_nseries(self, x, n, logx):
log_series += Order(t**n, x)
# branch handling
if c.is_negative:
if t.is_Order:
return self._eval_nseries(x, n + 1, logx)
l = floor(arg(t.removeO()*c)/(2*pi)).limit(x, 0)
if l.is_finite:
log_series += 2*I*pi*l
Expand Down
4 changes: 4 additions & 0 deletions diofant/tests/calculus/test_limits.py
Expand Up @@ -1078,3 +1078,7 @@ def test_sympyissue_24276():
# assert e.simplify().limit(x, oo) == 2
# assert e.rewrite(sin).limit(x, oo) == 2
# assert e.rewrite(sin).simplify().limit(x, oo) == 2


def test_issue_1262():
assert limit(I*exp(I*x)*log(exp(I*x)), x, -pi) == -pi

0 comments on commit 39f783f

Please sign in to comment.