Chenjie Gu wrote: >>> Yes to both. I wrote up my notes when trying to understand what was >>> going on here in Issue 1601: >>> >>> http://code.google.com/p/sympy/issues/detail?id=1601 >>> >>> Chris, >> >> I just went through the above link. >> In any case, I think what you described is a "deterministic" >> algorithm, >> right? >> What I feel confused is that it gives "random" results in different >> runs. (on the same machine) >> Would you explain why that's the case? >>
If you show some code showing that result perhaps that would help. Otherwise, I can't imagine why equivalent expressions would give different result. But note: the ordering of the args matters, so if variable names or any other such thing change the ordering of terms then that will change the match behavior IIRC. /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.
