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
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
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
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
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
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
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
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
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 !
--
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 -
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 -
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
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
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
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
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
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
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
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
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
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
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
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,
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
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(...) ==
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
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
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
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
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
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
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
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
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.
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'.
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]:
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,
37 matches
Mail list logo