I'm curious about this:
In [29]: e = S(2)

In [30]: e.is_number
Out[30]: True

In [31]: e.is_Number
Out[31]: True

In [32]: e.is_NumberSymbol
Out[32]: False

In [33]: pi.is_number
Out[33]: True

In [34]: pi.is_Number
Out[34]: False

In [35]: pi.is_NumberSymbol
Out[35]: True

In [36]: e_over_pi = e/pi

In [37]: e_over_pi.is_number
Out[37]: True

In [38]: e_over_pi.is_Number
Out[38]: False

In [39]: e_over_pi.is_NumberSymbol
Out[39]: False

1)  Why are there both 'is_Number' and a 'is_number' methods, and why
do they return different results?
2) It seems to me that if something is NumberSymbol, it should also be
a Number (or number), but this isn't how pi currently is.

I'm guessing this part is a work in progress with the assumptions
system, but I'm not sure.

~Luke
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com
To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to