If I use *S(1)/4* or *1./4*, all works as expected. I have understood that is normal because 1/4 is an euclidean division. Sorry, I always use Python 3 where 1/4 is a float division.
2014-05-04 15:24 GMT+02:00 Christophe Bal <projet...@gmail.com>: > Hello. > > The folowing code gives a wrong output in IPython. Indeed the fraction 1/4 > disapears... > > Christophe BAL > > > *---------------------* > *from sympy import ** > > *init_printing()* > > *x = var("x")* > > *f = x**3 + cos(x+1/4)* > > *print f* > -- 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 sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. 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/CAAb4jGkNYq-7kPrA53Qr1yvdrde7zkaoYmQvWgXXPA%2B0U9gYwA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.