Hi, The attribute 'is_rational' seems to give surprising results:
>>> from sympy import nfloat, sqrt >>> x = nfloat(sqrt(2)) >>> x 1.41421356237310 >>> x.is_rational True This leads to problems if used as a basis for decisions. There might be an explanation I don't see. (Other than 'all truncated decimal (or binary) numbers are rational'.) Kalevi -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/e5709e8b-482d-452c-9df0-9ed13692cfe4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
