On Wednesday, March 28, 2012 10:54:02 PM UTC+5:30, Stefan Krastanov wrote:
>
> > It is just a helper tool for plotting. As mentioned in the paper, we 
> would
> > like to handle plots like y < sqrt(x).
> > mpmath gives a result something like below for sqrt([-0.5,0.5])
> >
> > In [10]: a = iv.mpf([-0.5,0.5])
> > In [11]: a**0.5
> > Out[11]: ([-0.70710678118654757274, 0.70710678118654757274] +
> > [-0.70710678118654757274, 0.70710678118654757274]*j)
>
> I don't get this. How is interval arithmetics defined over the complex 
> numbers?
>
> Are you saying that there is a bug in mpmath's interval arithmetics?
>
Not exactly a bug. They have an implementation for complex numbers also.
Basically sqrt([-0.5,0,5]) can lie between the intervals mentioned, which 
is true. 

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sympy/-/iGvGhuE-VBIJ.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to