I get False on Mac OS X 10.5 with Python 2.6.2.
Changing could_extract_minus_sign to make it smarter would be fine,
but I think it does not fix the main issue here. Namely, the same
thing in sympy should hash to the same value on any computer.
Aaron Meurer
On Jun 27, 2009, at 11:49 AM, Ryan Krauss wrote:
> Ondrej and I stumbled upon an issue with could_extract_minus_sign
>
> var('t, n')
> z = (-t-t*n)/n
> z.could_extract_minus_sign()
> this last line returns False on my machine and True on Ondrej's. We
> are both running Ubuntu 9.04 and Python 2.6.2.
>
> I think the issue is that the method makes it all the way down to
> the last resort hash and I think Ondrej is using unicode and I am
> not (or something like that).
>
> I think could_extract_minus sign should have an is_Mul case that
> returns the could_extract_minus_sign result on the numerator.
>
> Any thoughts on that?
>
> Ryan
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---