On Mon, Aug 10, 2009 at 5:34 PM, Fabian Pedregosa<fab...@fseoane.net> wrote: > > Now refine() takes care of this. Relevants test appear in > refine/tests/test_refine.py > --- > sympy/functions/elementary/complexes.py | 9 ++------- > sympy/functions/elementary/tests/test_complexes.py | 14 -------------- > 2 files changed, 2 insertions(+), 21 deletions(-) > > diff --git a/sympy/functions/elementary/complexes.py > b/sympy/functions/elementary/complexes.py > index 62976d9..ead54bb 100644 > --- a/sympy/functions/elementary/complexes.py > +++ b/sympy/functions/elementary/complexes.py > @@ -211,11 +211,11 @@ class abs(Function): > >>> from sympy import abs, Symbol > >>> abs(-1) > 1 > - >>> x = Symbol('x', real=True) > + >>> x = Symbol('x') > >>> abs(-x) > abs(x) > >>> abs(x**2) > - x**2 > + abs(x**2)
This changes the meaning of the doctest. If you want to have that one in there, we can add it too, but the above should be changed to: In [4]: refine(abs(x**2), Assume(x, Q.real)) Out[4]: 2 x Ondrej --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-patches" group. To post to this group, send email to sympy-patches@googlegroups.com To unsubscribe from this group, send email to sympy-patches+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy-patches?hl=en -~----------~----~----~----~------~----~------~--~---