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.
Best, Travis 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 sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.