Re: Issue 1695 in sympy: integral of a piecewise function gives bad result

2011-01-28 Thread sympy
Comment #68 on issue 1695 by andy.ter...@gmail.com: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 The real bug is _eval_integral can only handle numbers: In [33]: Piecewise((3*x,x2), (0, True))._eval_interval(x,0, x) Out[33]: 6 The

Re: Issue 1695 in sympy: integral of a piecewise function gives bad result

2011-01-28 Thread sympy
Comment #69 on issue 1695 by asmeurer: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Possibly related to issue 1950. -- You received this message because you are subscribed to the Google Groups sympy-issues group. To post to this

Re: Issue 1950 in sympy: Piecewise((x, 0 x), (0, Eq(x, 0)), (-x, x 0))._eval_interval(x, -1, 1) is wrong

2011-01-28 Thread sympy
Comment #1 on issue 1950 by andy.ter...@gmail.com: Piecewise((x, 0 x), (0, Eq(x, 0)), (-x, x 0))._eval_interval(x, -1, 1) is wrong http://code.google.com/p/sympy/issues/detail?id=1950 Hmm, I'll take a closer look. The code is complicated because function is dependent on which intervals

Re: Issue 1695 in sympy: integral of a piecewise function gives bad result

2011-01-28 Thread sympy
Comment #70 on issue 1695 by andy.ter...@gmail.com: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 We should probably just check if the sym is in the interval and then just return the Integral if it is. That is the approach

Re: Issue 1950 in sympy: Piecewise((x, 0 x), (0, Eq(x, 0)), (-x, x 0))._eval_interval(x, -1, 1) is wrong

2011-01-28 Thread sympy
Comment #4 on issue 1950 by asmeurer: Piecewise((x, 0 x), (0, Eq(x, 0)), (-x, x 0))._eval_interval(x, -1, 1) is wrong http://code.google.com/p/sympy/issues/detail?id=1950 What? I don't understand what you mean. -- You received this message because you are subscribed to the Google Groups

Issue 2171 in sympy: oo eats Integral

2011-01-28 Thread sympy
Status: Accepted Owner: asmeurer Labels: Type-Defect Priority-Medium Integration WrongResult New issue 2171 by asmeurer: oo eats Integral http://code.google.com/p/sympy/issues/detail?id=2171 I haven't looked into why it does this yet, but for whatever reason oo eats Integral(oo, x): In

Re: Issue 1950 in sympy: Piecewise((x, 0 x), (0, Eq(x, 0)), (-x, x 0))._eval_interval(x, -1, 1) is wrong

2011-01-28 Thread sympy
Comment #5 on issue 1950 by andy.ter...@gmail.com: Piecewise((x, 0 x), (0, Eq(x, 0)), (-x, x 0))._eval_interval(x, -1, 1) is wrong http://code.google.com/p/sympy/issues/detail?id=1950 If you ignore the subinterval (oo, Eq(x, 0) then the miss its the contribution to the interval.

Re: Issue 1695 in sympy: integral of a piecewise function gives bad result

2011-01-28 Thread sympy
Comment #71 on issue 1695 by asmeurer: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Maple can generally handle Piecewise integrals. They have an algorithm implemented, which I believe is the one from issue 2128 (or something

Re: Issue 1950 in sympy: Piecewise((x, 0 x), (0, Eq(x, 0)), (-x, x 0))._eval_interval(x, -1, 1) is wrong

2011-01-28 Thread sympy
Comment #6 on issue 1950 by asmeurer: Piecewise((x, 0 x), (0, Eq(x, 0)), (-x, x 0))._eval_interval(x, -1, 1) is wrong http://code.google.com/p/sympy/issues/detail?id=1950 Measure zero intervals contribute nothing to an Integral. See the first sentence of

Re: Issue 2128 in sympy: Implement more general piecewise integration algorithm

2011-01-28 Thread sympy
Updates: Cc: andy.terrel Comment #19 on issue 2128 by andy.ter...@gmail.com: Implement more general piecewise integration algorithm http://code.google.com/p/sympy/issues/detail?id=2128 (No comment was entered for this change.) -- You received this message because you are subscribed

Re: Issue 1695 in sympy: integral of a piecewise function gives bad result

2011-01-28 Thread sympy
Comment #72 on issue 1695 by andy.ter...@gmail.com: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 2128 is different. Piecewise should be able to handle that but probably has errors handling the nested Piecewise. This issue is

Re: Issue 1950 in sympy: Piecewise((x, 0 x), (0, Eq(x, 0)), (-x, x 0))._eval_interval(x, -1, 1) is wrong

2011-01-28 Thread sympy
Comment #9 on issue 1950 by andy.ter...@gmail.com: Piecewise((x, 0 x), (0, Eq(x, 0)), (-x, x 0))._eval_interval(x, -1, 1) is wrong http://code.google.com/p/sympy/issues/detail?id=1950 Sure Riemann implies Lebegue but we don't have a notion of sets built into piecewise functions. That's

Re: Issue 2084 in sympy: limit(1+1/x, x, 0, dir='-') fails

2011-01-28 Thread sympy
Comment #61 on issue 2084 by nicolas@gmail.com: limit(1+1/x, x, 0, dir='-') fails http://code.google.com/p/sympy/issues/detail?id=2084 Thanks, that's wxgeo : https://github.com/wxgeo. I'm far from a git/github expert however, so I hope I won't break anything ;) -- You received this