Sorry for late reply. However i had mentioned in my second post as an edit that 'x' is with assumption 'real=True'. But i now understand that "operation i suggested" makes the expression more of complex. Rather than simplifying it.
On Tuesday, May 19, 2015 at 9:36:30 PM UTC+5:30, Aaron Meurer wrote: > > x is generally assumed to be complex (not real, so your Piecewise is > not really correct). Hence it could also be I*oo or -I*oo or even zoo. > x*oo is the simplest form of this. Plus, it's best to minimize > automatic simplification, and especially avoid automatic > "simplification" that actually makes the expression more complex (like > your Piecewise). > > Aaron Meurer > > On Sun, May 17, 2015 at 2:13 AM, Gaurav Dhingra <axyd...@gmail.com > <javascript:>> wrote: > >>>> 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 sympy+un...@googlegroups.com <javascript:>. > > To post to this group, send email to sy...@googlegroups.com > <javascript:>. > > 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. > > > > 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 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/78622a78-2f57-46db-a145-4760f03d8f64%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.