Issue 3712 in sympy: simplify cancels inconsistently

2013-03-22 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 3712 by jord...@gmail.com: simplify cancels inconsistently http://code.google.com/p/sympy/issues/detail?id=3712 In git master and 0.7.2: In [1]: simplify((x-y)*(30*z-20)/10) Out[1]: (x - y)⋅(3⋅z - 2) but: In [2]: simplify((

Re: Issue 3712 in sympy: simplify cancels inconsistently

2013-03-22 Thread sympy
Updates: Status: Valid Labels: Simplify Comment #1 on issue 3712 by krastano...@gmail.com: simplify cancels inconsistently http://code.google.com/p/sympy/issues/detail?id=3712 (No comment was entered for this change.) -- You received this message because this project is confi

Re: Issue 3712 in sympy: simplify cancels inconsistently

2013-03-23 Thread sympy
Comment #2 on issue 3712 by smi...@gmail.com: simplify cancels inconsistently http://code.google.com/p/sympy/issues/detail?id=3712 It's because the "simpler expression" does not have a short ops count. If you pass oo for the ratio you will get simplify((x-y)*(40*z-20)/10,oo) 4*x*z - 2*x

Re: Issue 3712 in sympy: simplify cancels inconsistently

2013-03-26 Thread sympy
Comment #3 on issue 3712 by asmeu...@gmail.com: simplify cancels inconsistently http://code.google.com/p/sympy/issues/detail?id=3712 But (x - y)*(4*z - 2) should have a smaller ops count than the original. -- You received this message because this project is configured to send all issue no

Re: Issue 3712 in sympy: simplify cancels inconsistently

2013-03-27 Thread sympy
Comment #4 on issue 3712 by smi...@gmail.com: simplify cancels inconsistently http://code.google.com/p/sympy/issues/detail?id=3712 Than the expanded version? Yes. But simplify doesn't use the expensive 'factor' option so you don't get that from the expanded version. In the changes that I'

Re: Issue 3712 in sympy: simplify cancels inconsistently

2013-04-27 Thread sympy
Updates: Status: Fixed Comment #6 on issue 3712 by smi...@gmail.com: simplify cancels inconsistently http://code.google.com/p/sympy/issues/detail?id=3712 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue noti