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
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
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,
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
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
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
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