Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium CodeInCategory-Code CodeInDifficulty-Easy

New issue 2875 by smi...@gmail.com: cse not working with Integral args
http://code.google.com/p/sympy/issues/detail?id=2875

cse([Integral((x+1)*sin(x)/2, x),Integral((x+1)*cos(x)/2, x)])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sympy\simplify\cse_main.py", line 228, in cse
    to_eliminate[j] = to_eliminate[j].subs(subtree, sym)
  File "sympy\core\basic.py", line 709, in subs
    return self._subs_old_new(old, new)
  File "sympy\core\cache.py", line 90, in wrapper
    func_cache_it_cache[k] = r = func(*args, **kw_args)
  File "sympy\core\basic.py", line 718, in _subs_old_new
    return self._eval_subs(old, new)
  File "sympy\core\add.py", line 442, in _eval_subs
    coeff_old, terms_old = old.as_coeff_Add()
AttributeError: 'Tuple' object has no attribute 'as_coeff_Add'


--
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