Of course, x.n().is_real() condition needs to be added as in: http://aleph.sagemath.org/?z=eJxLVLBV0DXUNzTSKshU0FYAs4oLi0o0DM0gIgWZcUZAysjUTBNImegbcyUBtSQWJSfnF2sYaXIlE2GAhpGWpyaqIVwFRZl5JQpJ-fk5Gol6eRqaCoq2Cn6JfgqJeSkKYAG9zOL4otTEHA1NTWTFSeiKk_AoTkZXnIymGAAkrEPy
On Monday, May 7, 2012 1:56:21 PM UTC+2, Duc Trung Ha wrote: > > With very kind & generous help of Robert Samal following solution was > proposed: > > bool(x.n() != NaN) > > should give out True iff x is a real number. It seems to work: > > http://aleph.sagemath.org/?z=eJxLVLBV0DXUNzTSKshU0FYAs4oLi0o0DM0gIgWZcUZAysjUTBNImegbcyUBtSQWJSfnF2sYaXJxFRRl5pUoJOXn52gk6uVpaCoo2ir4JfppIkskIUsAAIR8Hfg%3D > > Is this a correct & proper method to recognize real numbers? > -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org