Comment #5 on issue 2418 by [email protected]: Interval.evalf() returns a mpmath interval
http://code.google.com/p/sympy/issues/detail?id=2418

I am trying to fix this issue, and wanted some more input:

1. I have removed the interval_evalf() functions from inequalities.py and all tests for that file pass.

2. I have also added a method Interval.to_mpmath(self, prec) to sets.py , that has the following code:

return Interval(self.left._to_mpmath(prec), self.right._to_mpmath(prec),
          left_open=self.left_open, right_open=self.right_open);

or should this just be

return [ self.left._to_mpmath(prec), self.right._to_mpmath(prec)]

Will include tests based on the choice above.

3. For the evalf(), the Interval._eval_evalf() seems to be already doing what
was intended in Comment 1, and is returning a type

<sympy.core.sets.Interval>.  Does this still need to change?


--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to