ISSUE-8582

The commit will resolve the issue of 1**zoo, 1**(oo+I) and 1**(1+I*oo) giving 1 instead of nan.
e.is_finite is false because we're checking whether the term 'b' would be
defined at 'nan' or if 'e is infinite'.

On Wed, Dec 10, 2014 at 5:55 AM, Aaron Meurer <notifications@github.com>
wrote:

> In sympy/core/power.py
> <https://github.com/sympy/sympy/pull/8595#discussion-diff-21575463>:
>
> > @@ -172,7 +172,7 @@ def __new__(cls, b, e, evaluate=None):
> >                  elif e.is_odd:
> >                      return -Pow(-b, e)
> >              if b is S.One:
> > -                if e in (S.NaN, S.Infinity, -S.Infinity):
> > +                if e is S.NaN or e.is_finite is False:
>
> Should this be e.is_finite is False or e.is_infinite is True?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/sympy/sympy/pull/8595/files#r21575463>.
>