Difference between expr.is_number and expr.is_Number
47 views
Skip to first unread message
Paul Royik
unread,
Mar 25, 2015, 8:32:17 AM3/25/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
What is the difference between above two properties?
Aaron Meurer
unread,
Mar 25, 2015, 12:55:53 PM3/25/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
The capitalized version checks if the class is an instance of the
Number class (this is true in general for is_Capitalized). The
lowercase version checks if the expression has free symbols. So for
instance, (1 + pi).is_number is True but (1 + pi).is_Number is False.
In general, is_lowercase means it checks some assumption on an
expression (is_number is technically not part of the assumptions
system, but it is very similar).
Aaron Meurer
On Wed, Mar 25, 2015 at 7:32 AM, Paul Royik <distan...@gmail.com> wrote:
> What is the difference between above two properties?
>