On Thu, Feb 21, 2013 at 9:02 PM, Aaron Meurer <[email protected]> wrote:
> On Feb 21, 2013, at 6:13 AM, Johan Hake <[email protected]> wrote:
>
> Thanks both of you!
>
> Not sure I will be able to use Mul(..., evaluate=False) as I am executing
> math code written in sympy. Having to rewrite the math using Mul would
> clutter my code. When I try to turn of all evaluation by changing the
> default argument to AssocOp to evaluate=False, I get recursion error when
> printing some of the expressions.
>
>
> That's doing too much. That will disable x*x => x**2 or even x - x => 0.
>
>
> Also applying the fixes as suggested by the two commits in the branch linked
> to in issue1497, did not do anything to the problem.
>
>
> Just dig through Mul.flatten and figure out where it is happening. The code
> is a little complicated, but it is well commented.
>

Line 512 of core/mul.py, right after "# we are done".

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


Reply via email to