> So Float objects should always compare unequal to Rational objects,
>
> > for example Float(3.0) == Rational(3) should be false?
>
Numbers are specially handled so that Float(3.0) == Integer(3) == 3.
But a**1.0 != a not because of 1.0 != 1 but because a Pow is not the
same thing as a symbol...but considering the following, I think that a
special check for equality of Pow with other should check for a 1.0
exponent:
>>> a**2.0 == a**2
True
>>> a**1.5 == sqrt(a)**3
True
So the only thing holding back the `a**1.0` from equaling the `a` is
the fact that it doesn't consider that the Pow may have an exponent of
1.0.
--
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.