#4746: Bug in srange
---------------------+------------------------------------------------------
Reporter: vgermrk | Owner: cwitty
Type: defect | Status: new
Priority: major | Milestone: sage-3.2.2
Component: misc | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Comment (by jhpalmieri):
To whoever works on this problem: I would also request that the options
'universe' and 'check' be documented (or removed). The documentation for
'include_endpoint' should say something like "whether or not to include
the right-hand endpoint" or "whether to include 'end' " or something. (I
mean, it's more or less clear that you will include {{{start}}} and the
issue is whether {{{end}}} is included, but this could be phrased better,
I think.)
Along these lines, what does 'include_endpoint=True' mean if
{{{start+k*step}}} is never equal to {{{end}}}? For example, is
{{{
srange(start=1, end=3.5, step=1, include_endpoint=True)
}}}
supposed to behave differently from
{{{
srange(start=1, end=3.5, step=1, include_endpoint=False)
}}}
My guess is no, but this could be clarified in the documentation.
("whether to include 'end' if end == start+k*step for some k"?)
Finally, if you want to set a tolerance, would a default value of {{{step
* epsilon}}} be good, for some choice of epsilon (e.g. 10^-5)?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4746#comment:3>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---