Julien Rioux wrote:
>> Dear list,
>> 
>> I found some more problems when using non-commutative symbols and
>> subs and I wonder if I should reopen issue 2022 or open a new issue?
>> 

Before the changes of 2039 you would get:

    h[2] >>> (a*A).subs(a*a*A,B)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "sympy\core\basic.py", line 705, in subs
        return self._subs_old_new(old, new)
      File "sympy\core\cache.py", line 85, in wrapper
        func_cache_it_cache[k] = r = func(*args, **kw_args)
      File "sympy\core\basic.py", line 714, in _subs_old_new
        return self._eval_subs(old, new)
      File "sympy\core\mul.py", line 897, in _eval_subs
        comms_final.remove(ele)
    ValueError: list.remove(x): x not in list

Now you get the wrong result. I'll look into this.

/c

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

Reply via email to