ISSUE-8582

The commit will resolve the issue of 1**zoo, 1**(oo+I) and 1**(1+I*oo) giving 1 instead of nan.
Should this be `e.is_finite is False` or `e.is_infinite is True`?