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

`e.is_infinite` is better