The closest I can get is "foo in RR". This fails for CC(2.3, 0), but I 
consider that to be a real number.


On Monday, September 19, 2016 at 9:37:18 AM UTC-5, Jeroen Demeyer wrote:
> Hello, 
> is there a simple way to check in Sage that something is a real number 
> in some form? That is, I am looking for a predicate which returns True 
> on all the following things: 
> int(2) 
> ZZ(2) 
> float(2.3) 
> QQ(23/10) 
> RR(2.3) 
> RDF(2.3) 
> SR(2.3) 
> 2*pi 
> but not on things like 
> "2.3" 
> CC(2.3, 0) 
> SR.symbol("x") 

You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to