In that case, it could be useful if a comment indicates this difference of behavior regarding to the standalone version of Sympy, and also if all fractions in Sympy Live are automatically converted into Rational classes.
I suggest that so as to have a coherent behavior in the Sympy Live version and also to warn about this special behaviour of Sympy Live. Best regards. Christopher Le 7 sept. 2013 00:45, "Aaron Meurer" <[email protected]> a écrit : > I forgot that we automatically wrap integer literals in SymPy Live. We > should probably at least add an option for that. > > Aaron Meurer > > On Fri, Sep 6, 2013 at 3:36 PM, Christophe Bal <[email protected]> > wrote: > > Indeed I've used Sympy Live. > > > > Le 6 sept. 2013 23:27, "Ondřej Čertík" <[email protected]> a > écrit : > > > >> On Fri, Sep 6, 2013 at 3:19 PM, Christophe Bal <[email protected]> > >> wrote: > >> > The fact that I''ve focused in my first message is that in asin(1/2) > >> > the > >> > argument 1/2 is a float whereas in 1/2 + 7/3 it is seen has a > >> > fraction. > >> > >> I don't understand --- for me 1/2 + 7/3 is a float as well: > >> > >> In [1]: 1/2 + 7/3 > >> Out[1]: 2.83333333333 > >> > >> Can you provide the full code? > >> > >> Ondrej > >> > >> > > >> > That shows a weakness of asin regarding to the addition. Don't you > >> > think > >> > the same ? > >> > > >> > Le 6 sept. 2013 18:26, "Sergey B Kirpichev" <[email protected]> a > >> > écrit : > >> > > >> >> On Fri, Sep 06, 2013 at 05:28:05PM +0200, Joachim Durchholz wrote: > >> >> > >1/2 is not an exact fraction. > >> >> > > >> >> > 0.5f does happen to be the exact fraction for 1/2. > >> >> > >> >> Yes. 1/2 = 0.5f (in python 2 we use "from __future__ import > >> >> division"). And no, 0.5f is not an exact number, it's a float. > >> >> > >> >> -- > >> >> 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. > >> >> For more options, visit https://groups.google.com/groups/opt_out. > >> > > >> > -- > >> > 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. > >> > For more options, visit https://groups.google.com/groups/opt_out. > >> > >> -- > >> 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. > >> For more options, visit https://groups.google.com/groups/opt_out. > > > > -- > > 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. > > For more options, visit https://groups.google.com/groups/opt_out. > > -- > 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. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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. For more options, visit https://groups.google.com/groups/opt_out.
