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

oo**I raises RunTimeError #10020

Closed
gxyd opened this Issue Oct 22, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@gxyd
Copy link
Member

gxyd commented Oct 22, 2015

gxyd@swap:~/Public/sympy$ python3.4
Python 3.4.3 (default, Jul 28 2015, 18:20:59) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from sympy import *
>>> oo**I
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 118, in binary_op_wrapper
    return func(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/expr.py", line 151, in __pow__
    return Pow(self, other)
  File "/home/gxyd/Public/sympy/sympy/core/cache.py", line 93, in wrapper
    retval = cfunc(*args, **kwargs)
  File "/usr/lib/python3.4/functools.py", line 472, in wrapper
    result = user_function(*args, **kwds)
  File "/home/gxyd/Public/sympy/sympy/core/power.py", line 192, in __new__
    obj = b._eval_power(e)
  File "/home/gxyd/Public/sympy/sympy/core/numbers.py", line 2474, in _eval_power
    return self**expt.evalf()
  File "/home/gxyd/Public/sympy/sympy/core/decorators.py", line 77, in __sympifyit_wrapper
    return func(a, b)
RuntimeError: maximum recursion depth exceeded while calling a Python object

Some part of traceback has been removed to keep it short

gxyd pushed a commit to gxyd/sympy that referenced this issue Oct 23, 2015

Gaurav Dhingra

gxyd pushed a commit to gxyd/sympy that referenced this issue Oct 23, 2015

Gaurav Dhingra
fixes sympy#10020
oo**e now evaluates properly for non-real complex values

gxyd pushed a commit to gxyd/sympy that referenced this issue Oct 24, 2015

Gaurav Dhingra
fixes sympy#10020
oo**e now evaluates properly for non-real complex values

(-oo)**e for non-real, complex `e` evaluates correctly

I, -I included in `definition`

gxyd pushed a commit to gxyd/sympy that referenced this issue Nov 1, 2015

Gaurav Dhingra
fixes sympy#10020
oo**e now evaluates properly for non-real complex values

(-oo)**e for non-real, complex `e` evaluates correctly

I, -I included in `definition`

@jksuom jksuom closed this in #10029 Dec 8, 2015

skirpichev added a commit to skirpichev/diofant that referenced this issue Jul 16, 2016

fixes sympy/sympy#10020
oo**e now evaluates properly for non-real complex values

(-oo)**e for non-real, complex `e` evaluates correctly

I, -I included in `definition`

Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>

skirpichev added a commit to skirpichev/diofant that referenced this issue Jul 17, 2016

fixes sympy/sympy#10020
oo**e now evaluates properly for non-real complex values

(-oo)**e for non-real, complex `e` evaluates correctly

I, -I included in `definition`

Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>

skirpichev added a commit to skirpichev/diofant that referenced this issue Jul 17, 2016

fixes sympy/sympy#10020
oo**e now evaluates properly for non-real complex values

(-oo)**e for non-real, complex `e` evaluates correctly

I, -I included in `definition`

Signed-off-by: Sergey B Kirpichev <skirpichev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment