[sympy] Replace method not respecting non-commutativity

2014-07-18 Thread Keaton Burns
Hello, I'm using the replace method to substitute a function symbol with a python lambda function, but this process is failing to respect non-commutativity. This can be seen with a simple example: import sympy as sy x, y = sy.symbols('x, y', commutative=False) f = sy.Function('f')

Re: [sympy] Replace method not respecting non-commutativity

2014-07-18 Thread Keaton Burns
when simultaneous=True (the default), it uses Dummy symbols, which do not keep the assumptions of the symbols they replace. If you set simultaneous=False, it works correctly. Aaron Meurer On Fri, Jul 18, 2014 at 1:52 PM, Keaton Burns keaton...@gmail.com javascript: wrote: Hello