Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3460 by smi...@gmail.com: 'Infinity' object has no attribute 'q'
http://code.google.com/p/sympy/issues/detail?id=3460

Python 2.7.3 (default, Aug  1 2012, 05:16:07)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
-log(-12*sqrt(2) + 17)/24 - log(-2*sqrt(2) + 3)/12 + sqrt(2)/3
-log(-2*sqrt(2) + 3)/12 - log(-12*sqrt(2) + 17)/24 + sqrt(2)/3
cse(_)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sympy/simplify/cse_main.py", line 322, in cse
    reduced_exprs[j] = update(expr)
  File "sympy/simplify/cse_main.py", line 318, in <lambda>
    update = lambda x: x.subs(subtree, sym)
  File "sympy/core/basic.py", line 875, in subs
    rv = rv._subs(old, new)
  File "sympy/core/cache.py", line 92, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy/core/basic.py", line 974, in _subs
    rv = fallback(self, old, new)
  File "sympy/core/basic.py", line 961, in fallback
    arg = arg._subs(old, new, **hints)
  File "sympy/core/cache.py", line 92, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy/core/basic.py", line 972, in _subs
    rv = self._eval_subs(old, new)
  File "sympy/core/mul.py", line 1211, in _eval_subs
    self2 = n._subs(old, new)/d._subs(old, new)
  File "sympy/core/cache.py", line 92, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy/core/basic.py", line 974, in _subs
    rv = fallback(self, old, new)
  File "sympy/core/basic.py", line 961, in fallback
    arg = arg._subs(old, new, **hints)
  File "sympy/core/cache.py", line 92, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy/core/basic.py", line 974, in _subs
    rv = fallback(self, old, new)
  File "sympy/core/basic.py", line 961, in fallback
    arg = arg._subs(old, new, **hints)
  File "sympy/core/cache.py", line 92, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy/core/basic.py", line 974, in _subs
    rv = fallback(self, old, new)
  File "sympy/core/basic.py", line 961, in fallback
    arg = arg._subs(old, new, **hints)
  File "sympy/core/cache.py", line 92, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy/core/basic.py", line 972, in _subs
    rv = self._eval_subs(old, new)
  File "sympy/core/mul.py", line 1288, in _eval_subs
    rat.append(ndiv(c_e, old_e))
  File "sympy/core/mul.py", line 1202, in ndiv
    if not b.q % a.q or not a.q % b.q:
AttributeError: 'Infinity' object has no attribute 'q'


--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to