Hello. I do not think that is really a convention, but it is very logical because 1.1 can also be a float result given by Python. But floats and decimals are not the same due to the ways operators act on them.
Christophe BAL Le 28 mars 2014 10:34, "Ralf Stephan" <gtrw...@gmail.com> a écrit : > I would like to understand Sage behaviour better. I just found out that > Sage is different from Pari when it comes to user input of values: > > sage: Ei(1.1).n(100) > 2.1673782795634028985887198360 > sage: Ei(11/10).n(100) > 2.1673782795634028235837873423 > > while in Pari: > ? sin(1.1) > %1 = 0.89120736006143533995180257787170353832 > ? sin(11/10) > %2 = 0.89120736006143533995180257787170353832 > > What could be the reason to interpret the user input "1.1" as "real with > precision of 53 bits" instead of "short way of specfying 11/10"? > Programming convenience? If you say well then the user should say 11/10 if > she means it, this could be said as well with RealField(1.1), so what is > the reason for this convention? > > Regards, > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To post to this group, send email to sage-support@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.