Oh. How do I check if something is an integer, rational, real, or complex?
On 5/9/07, William Stein <[EMAIL PROTECTED]> wrote:
> is_RealNumber checks that the data type of the input is a RealNumber,
> i.e., has parent a real field. It does not check whether the object
> itself has some sort of abstract mathematical meaning as a real
> number.
>
> On 5/9/07, Timothy Clemans <[EMAIL PROTECTED]> wrote:
> > {{{
> > is_RealNumber(3)
> > ///
> > False
> > }}}
> >
> > {{{
> > is_RealNumber(sqrt(2))
> > ///
> > False
> > }}}
> >
> > {{{
> > is_RealNumber(pi)
> > ///
> > False
> > }}}
> >
>
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washington
> http://www.williamstein.org
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-support" 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/sage-support?hl=en
-~----------~----~----~----~------~----~------~--~---