On Thursday, October 2, 2014 11:11:14 AM UTC-7, Christophe Bal wrote: > > And what about the following code ? > > The user of Sympy must know that types are different and so that the > variable are not the same things. A float is not a rational. >
A float "type" is a different "type" from some other numbers, but in fact every binary float represents a particular rational number, of the form integer X 2^integer. Just happens that 1/3 as a rational number, is not a one of those binary floats. > -- 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/94b35738-f6ff-4e72-b82e-7fabed0bd6f8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
