Hello. I think that the 2nd writing will be hard to handle in more complex calculus. Maybe the three possibilities should be available if an assumption is made on x.
A simple user. *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a "Lycée" **and **Python **amateur developer* 2015-05-17 9:13 GMT+02:00 Gaurav Dhingra <[email protected]>: > >>> from sympy import Symbol, oo, simplify > >>> x = Symbol('x', real=True) > >>> simplify( x*oo ) > oo*x > > Do we use extended real number system(Affinely Extended Real Number > System) in sympy ? > If we do use them, then why not expressions like these "x*oo" evaluated > to a Piecewise function like > >>> Symbol('x') > >>> simplify( x*oo ) > Piecewise( ( -oo, x< 0 ), ( oo, x > 0), (Nan, x==0 )) # i expect > this to happen. > > Gaurav Dhingra > > -- > 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/33347c95-dba2-47a5-99f1-b8d7cbdd3c59%40googlegroups.com > <https://groups.google.com/d/msgid/sympy/33347c95-dba2-47a5-99f1-b8d7cbdd3c59%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAAb4jGmTcmg%2B1hK5hO%3DQLe0F_iDFB_oRBRLUnkXpppX6VVQxmA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
