#11753: Fix step=0 in (x)srange
------------------------+---------------------------------------------------
   Reporter:  ppurka    |          Owner:  jason, was                     
       Type:  defect    |         Status:  needs_work                     
   Priority:  minor     |      Milestone:  sage-4.7.2                     
  Component:  graphics  |       Keywords:  srange xsrange division_by_zero
Work_issues:            |       Upstream:  N/A                            
   Reviewer:            |         Author:                                 
     Merged:            |   Dependencies:                                 
------------------------+---------------------------------------------------

Comment(by ppurka):

 Replying to [comment:12 dimpase]:
 > Replying to [comment:11 ppurka]:
 > > Replying to [comment:10 dimpase]:
 > > > The condition {{{step == 0}}} you check looks worrisome. From a
 glance over the code it's not clear whether {{{step}}} cannot be a float,
 and if it is a float, then such a test does not make much sense.
 > >
 > > Should be fixed now.
 >
 > Ever written "real" numerical code?
 >
 > {{{min(range_steps) == float(0)}}} won't fly. You need something like
 {{{min(range_steps)<C*sys.float_info.epsilon}}}, for {{{C}}}
 > something like 2 or 10...

 Is this needed? Something like {{{plot(sqrt(x), 0,
 sys.float_info.epsilon**2)}}} works just fine.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11753#comment:13>
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.

Reply via email to