JensGrabner / mpmath-2

Automatically exported from code.google.com/p/mpmath
Other
3 stars 0 forks source link

Context for interval arithmetic #190

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Should we move interval arithmetic to a separate context? (mp, fp, ... iv?)

I think this would clear up some of the mp context code, and it would make
clearer what is and isn't supported in interval arithmetic.

I don't think there's a lot of code that needs to mix intervals and
non-intervals (to the point that there might be an issue to separate them,
anyway).

The only issue I can think of is what to do with interval endpoints (i.e.
what should x.a return). I think a zero-width interval should do the job,
assuming issue 151 gets implemented.

Original issue reported on code.google.com by fredrik....@gmail.com on 27 Mar 2010 at 7:10

GoogleCodeExporter commented 9 years ago
Done in  r1124.

Thoughts?

primepi2 needs to be rethought; other than that, I think it's mostly turning 
out well.

Original comment by fredrik....@gmail.com on 14 Apr 2010 at 3:14