Re: Issue 1113 in sympy: rewrite sign(x) (and possibly abs()) using Piecewise

2013-10-10 Thread sympy
Comment #13 on issue 1113 by asmeu...@gmail.com: rewrite sign(x) (and possibly abs()) using Piecewise http://code.google.com/p/sympy/issues/detail?id=1113 One major issue with integrals containing absolute values is the way we represent the derivative of abs(x). For real x, it comes out as

Re: Issue 1113 in sympy: rewrite sign(x) (and possibly abs()) using Piecewise

2012-09-05 Thread sympy
Comment #11 on issue 1113 by julien.r...@gmail.com: rewrite sign(x) (and possibly abs()) using Piecewise http://code.google.com/p/sympy/issues/detail?id=1113 The problem regarding Piecewise integration reported in comment #6 is fixed: In [64]: s = Piecewise((1, x0), (0, Eq(x, 0)), (-1, x0))

Re: Issue 1113 in sympy: rewrite sign(x) (and possibly abs()) using Piecewise

2012-03-27 Thread sympy
Comment #10 on issue 1113 by abhishek...@gmail.com: rewrite sign(x) (and possibly abs()) using Piecewise http://code.google.com/p/sympy/issues/detail?id=1113 hi it means some type of redefinition of abs(x) required because piecewise functions are working well. Can I begin working on this

Re: Issue 1113 in sympy: rewrite sign(x) (and possibly abs()) using Piecewise

2012-03-13 Thread sympy
Comment #8 on issue 1113 by asmeu...@gmail.com: rewrite sign(x) (and possibly abs()) using Piecewise http://code.google.com/p/sympy/issues/detail?id=1113 In master both remain unevaluated: In [1]: integrate(abs(x), x)Out[1]: ⌠ ⎮ │x│ dx ⌡ In [2]: integrate(abs(x), (x, -1, 2))Out[2]: 2 ⌠ ⎮

Re: Issue 1113 in sympy: rewrite sign(x) (and possibly abs()) using Piecewise

2012-03-09 Thread sympy
Comment #7 on issue 1113 by abhishek...@gmail.com: rewrite sign(x) (and possibly abs()) using Piecewise http://code.google.com/p/sympy/issues/detail?id=1113 In [0]: integrate(abs(x),x) Out[0]: 0 In [0]: integrate(abs(x),(x,-1,2)) Out[0]: 0 This problem is corrected for signum function but

Re: Issue 1113 in sympy: rewrite sign(x) (and possibly abs()) using Piecewise

2010-06-01 Thread sympy
Updates: Summary: rewrite sign(x) (and possibly abs()) using Piecewise Comment #6 on issue 1113 by asmeurer: rewrite sign(x) (and possibly abs()) using Piecewise http://code.google.com/p/sympy/issues/detail?id=1113 Actually, you teach integrate how to integrate new functions by