Re: Issue 2941 in sympy: Issue with equality check of number and power (when evaluate=false)

2012-01-04 Thread sympy
Updates: Status: Fixed Comment #6 on issue 2941 by smi...@gmail.com: Issue with equality check of number and power (when evaluate=false) http://code.google.com/p/sympy/issues/detail?id=2941 (No comment was entered for this change.) -- You received this message because you are subscri

Re: Issue 2941 in sympy: Issue with equality check of number and power (when evaluate=false)

2011-12-25 Thread sympy
Comment #5 on issue 2941 by ghanshya...@mettl.com: Issue with equality check of number and power (when evaluate=false) http://code.google.com/p/sympy/issues/detail?id=2941 This is because of in Number comparison __eq__ we are calling evalf ( **other = other.evalf()) if i comment this part. t

Re: Issue 2941 in sympy: Issue with equality check of number and power (when evaluate=false)

2011-12-24 Thread sympy
Comment #4 on issue 2941 by asmeu...@gmail.com: Issue with equality check of number and power (when evaluate=false) http://code.google.com/p/sympy/issues/detail?id=2941 This is also inconsistant when the exponent is 1: In [5]: S(2) == Pow(2, 1, evaluate=False) Out[5]: True In [6]: Pow(2, 1,

Re: Issue 2941 in sympy: Issue with equality check of number and power (when evaluate=false)

2011-12-24 Thread sympy
Updates: Status: Accepted Comment #3 on issue 2941 by asmeu...@gmail.com: Issue with equality check of number and power (when evaluate=false) http://code.google.com/p/sympy/issues/detail?id=2941 I'm not convinced that they should compare equal. Once you use an unevaluated expression

Re: Issue 2941 in sympy: Issue with equality check of number and power (when evaluate=false)

2011-12-23 Thread sympy
Updates: Labels: smichr NeedsReview Comment #2 on issue 2941 by smi...@gmail.com: Issue with equality check of number and power (when evaluate=false) http://code.google.com/p/sympy/issues/detail?id=2941 see https://github.com/sympy/sympy/pull/882 -- You received this message because

Re: Issue 2941 in sympy: Issue with equality check of number and power (when evaluate=false)

2011-12-23 Thread sympy
Comment #1 on issue 2941 by smi...@gmail.com: Issue with equality check of number and power (when evaluate=false) http://code.google.com/p/sympy/issues/detail?id=2941 k==r eventually runs the Rational.__eq__ test while r==k runs the Basic.__eq__ test which doesn't test to see if other is a

Issue 2941 in sympy: Issue with equality check of number and power (when evaluate=false)

2011-12-23 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 2941 by ghanshya...@mettl.com: Issue with equality check of number and power (when evaluate=false) http://code.google.com/p/sympy/issues/detail?id=2941 To reproduce this run below steps k=S.One r=Pow(1,2,evaluate=False) pr