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

2012-08-16 Thread sympy
Issue 1695: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 This issue is now blocking issue sympy:353. See http://code.google.com/p/sympy/issues/detail?id=353 -- You received this message because you are listed in the owner or CC fields of

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

2012-08-16 Thread sympy
Issue 1695: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 This issue is now blocking issue sympy:353. See http://code.google.com/p/sympy/issues/detail?id=353 -- You received this message because you are listed in the owner or CC fields of

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

2012-07-09 Thread sympy
Updates: Status: Fixed Owner: julien.r...@gmail.com Labels: -NeedsBetterPatch Blockedon: -7 -353 sympy:7 sympy:353 Comment #74 on issue 1695 by julien.r...@gmail.com: integral of a piecewise function gives bad result

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 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 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 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 1695 in sympy: integral of a piecewise function gives bad result

2010-10-06 Thread sympy
Comment #64 on issue 1695 by samuel.amo: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Yes the functionality seems to have been implemented (I'm using the Python2.6 from debian squeeze) and it works well :) Thx to all of you ! --

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

2010-10-06 Thread sympy
Comment #65 on issue 1695 by samuel.amo: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 There seems to be a remaining problem : when I do : integrate(Piecewise((3,x2),(exp(x),x5),(x,True)),(x,0,x)) it returns : -13/2 + x**2/2 -

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

2010-10-06 Thread sympy
Comment #66 on issue 1695 by samuel.amo: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 There seems to be a remaining problem : when I do : integrate(Piecewise((3,x2),(exp(x),x5),(x,True)),(x,0,x)) it returns : -13/2 + x**2/2 -

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

2010-09-16 Thread sympy
Comment #61 on issue 1695 by samuel.amo: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Hello, I am interested by the functionality proposed here (for mechanical studies, like Mag). Has it been pushed in the trunk repository ? What

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

2010-09-16 Thread sympy
Comment #62 on issue 1695 by samuel.amo: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Hello, I am interested by the functionality proposed here (for mechanical studies, like Mag). Has it been pushed in the trunk repository ? What

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

2010-09-16 Thread sympy
Comment #63 on issue 1695 by asmeurer: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 I don't recall many piecewise related changes being pushed in since 0.6.7, but it has been a while, so I could be wrong. The best way to tell is to

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

2010-08-03 Thread sympy
Updates: Labels: Integration Comment #60 on issue 1695 by asmeurer: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Does this even have to do with integration anymore? It's hard to tell the state of things with all the

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

2009-12-08 Thread sympy
Comment #55 on issue 1695 by mag...@rabic.org: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Not yet, sorry. There would be 3^4 testcases for union, and intersection should have been written without using complement, if we would want

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

2009-12-08 Thread sympy
Comment #56 on issue 1695 by Vinzent.Steinberg: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 I think if we get this in with not that many tests/doctests it's still a large improvement to the current situation, so I would like to see

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

2009-12-08 Thread sympy
Comment #58 on issue 1695 by mag...@rabic.org: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Maybe you are right, just I am not familiar enough whith the code. Where would you put it? -- You received this message because you are listed

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

2009-12-08 Thread sympy
Updates: Cc: fab...@fseoane.net Comment #59 on issue 1695 by Vinzent.Steinberg: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 CCing Fabian, because he's most familiar with the new assumptions code. But I think relational

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

2009-12-07 Thread sympy
Issue 1695: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 This issue is now blocking issue 353. See http://code.google.com/p/sympy/issues/detail?id=353 -- You received this message because you are listed in the owner or CC fields of this

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

2009-12-07 Thread sympy
Comment #52 on issue 1695 by Vinzent.Steinberg: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Fixed the failures in my branch. -- You received this message because you are listed in the owner or CC fields of this issue, or because you

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

2009-12-07 Thread sympy
Updates: Labels: -NeedsBetterPatch NeedsReview Comment #53 on issue 1695 by Vinzent.Steinberg: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 (No comment was entered for this change.) -- You received this message because you are

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

2009-12-07 Thread sympy
Updates: Labels: -NeedsReview NeedsBetterPatch Comment #54 on issue 1695 by ondrej.certik: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 In general, vinzent's piecewise branch looks good, but: * setizelist, deinterval,

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

2009-12-06 Thread sympy
Comment #51 on issue 1695 by Vinzent.Steinberg: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 I fixed the things I mentioned in comment 50, however I keep getting test failures. Pull from g...@github.com:vks/sympy.git piecewise

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

2009-11-30 Thread sympy
Comment #50 on issue 1695 by Vinzent.Steinberg: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Thank you Ronan, here a few comments: * NoUnionError should at least subclass from ValueError, if not be replaced with this. * 'type(...) ==

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

2009-11-29 Thread sympy
Updates: Status: PassedReview Comment #44 on issue 1695 by Vinzent.Steinberg: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Thank you a lot! Under which name and e-mail address do you want to be credited? I attached a

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

2009-11-29 Thread sympy
Comment #45 on issue 1695 by mag...@rabic.org: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Thanks for considering integration of my patch. The honour is mine, and I would like to be designated as Mag mag...@rabic.org -- You

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

2009-11-29 Thread sympy
Updates: Status: Started Comment #46 on issue 1695 by ronan.l...@gmail.com: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 I find some problems with this patch: * First of all, it's too large to be reviewed properly. It seems it

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

2009-11-29 Thread sympy
Comment #48 on issue 1695 by mag...@rabic.org: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 NoUnionError is there because in And/Or it makes a difference whether the union is simpler than the original. Even this algorithm is not

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

2009-11-17 Thread codesite-noreply
Comment #41 on issue 1695 by mag...@rabic.org: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 (It would be very nice if the git repository could be cloned via http. My firewall is rather picky.) Now here is a patch which breaks only

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

2009-11-12 Thread codesite-noreply
Comment #40 on issue 1695 by Vinzent.Steinberg: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Thank you for the code! Yes, Jorn's code is now in sympy's master. Please just do $ git checkout master $ git pull $ git checkout

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

2009-11-11 Thread codesite-noreply
Comment #38 on issue 1695 by mag...@rabic.org: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 I am trying it, I am conjuncting the conditions. But it breaks a lot of tests, because there are piecewiese functions defined with

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

2009-11-10 Thread codesite-noreply
Comment #37 on issue 1695 by asmeurer: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 By the way, your pact doesn't seem to apply to the latest master. Something in commit 02568ad3e34cafa1c563c12254d6b988c9de6dba seems to have broken

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

2009-11-09 Thread codesite-noreply
Comment #32 on issue 1695 by mag...@rabic.org: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Here is a new patch. It fixes Relationals and boolalg functions, solves inequalities, and implements integration of piecewise functions.

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

2009-11-09 Thread codesite-noreply
Comment #33 on issue 1695 by jorn.baayen: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Very cool. One thing to keep in mind is that sympy has a large suite of tests, none of which are supposed to fail: run 'python setup.py test'.

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

2009-11-09 Thread codesite-noreply
Comment #34 on issue 1695 by mag...@rabic.org: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Started to fix broken code, but there are some issues (maybe related) I don't even know how 1. sorted does not seem to work anymore: In [4]:

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

2009-11-06 Thread codesite-noreply
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 1695 by mag...@rabic.org: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Piecewise function is not integrated piecewise. This is a showstopper for me. e=Piecewise((1,