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
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))
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
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
⌠
⎮
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
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