If arg(x) is 0 and x is a number, then it is a real number. Maxima calls
this carg() for complex arg.
Carg will also work for some things that are not of numeric type, but
symbolic in some way.
Like sqrt(x^2+y^2) is real if domain=real
On Monday, September 19, 2016 at 7:37:18 AM UTC-7, Jeroen Demeyer wrote:
> 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:
> but not on things like
> CC(2.3, 0)
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.