On Sunday, May 17, 2015 at 12:43:59 PM UTC+5:30, Gaurav Dhingra 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', real=True) > >>> simplify( x*oo ) > Piecewise( ( -oo, x< 0 ), ( oo, x > 0), (Nan, x==0 )) # i expect > this to happen. > Edit: I have 2nd writing of x to 'real=True'
> > 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+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/392646da-f439-43b7-8982-eee9d3a74b23%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.