Wow, I didn't know integrate supported Intervals. If we are going to
support sets, we might as well support all of them (at least
unevaluated). A union of intervals is easy if the values are
computable (i.e., if you can determine if the union is disjoint).
Otherwise, it's complicated. Integrate(1, (x, Union(Interval(a, b),
Interval(c, d)))) depends on the relative order of a, b, c, and d.
Even the current integrate(1, (x, Interval(a, b))) is wrong if b > a.

Aaron Meurer

On Wed, Mar 25, 2015 at 6:13 AM, Francesco Bonazzi
<[email protected]> wrote:
> I opened this issue a few days ago:
> https://github.com/sympy/sympy/issues/9189
>
> I bumped into this problem because it was raised by the stats module.
> Apparently the integration algorithm is unable to cope with unions of
> intervals.
>
> I was wondering, is it correct to pass a union of intervals to the
> integrator? The stats module calls such integrals. Are there any plans to
> support them?
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/80cd6586-749a-404f-97d4-0b1bafcf30ab%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6LvaLxt47fyUJc5GV%3DwqhXAcrPH-tK%3DUjsyAHoiyYNaaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to