#8424: bounding box calculation doesn't handle NaN or infinity
---------------------------+------------------------------------------------
Reporter: jason | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-4.3.4
Component: graphics | Keywords:
Author: Jason Grout | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Robert Marik pointed out that there is a bug in the bounding box
calculation of the following plot:
{{{
var('y')
plot3d(sqrt(sin(x)*sin(y)), (x,0,2*pi),(y,0,2*pi))
}}}
The problem is that there are lots of NaNs generated in the evaluation of
the plot, and these are not handled well by the bounding box calculation.
The attached patch fixes the issues in two of the three places the
bounding box is calculated. A third place is not touched in
plot3d/transform.pyx, where I don't have time to make sure the fix is the
right one and supply the necessary doctests.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8424>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac?hl=en.