#8519: Add a factory of finite/infinite enumerated set (with categories) defines
by Range(begin, end, step)
-----------------------------+----------------------------------------------
Reporter: nborie | Owner: nborie
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.3.4
Component: combinatorics | Keywords: range, categories, set, integer
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Comment(by nborie):
Ok, after think a while...
I will update this code and give IntegerRange the behavior of range() if
and only if someone (else than me) can give me an empty set with
categories which can pass the tests....
{{{
sage: TestSuite(Set([])).run()
The following tests failed: _test_an_element, _test_category,
_test_elements, _test_some_elements
}}}
I need this feature for coherence!! Python range easily give out an empty
list like:
{{{
sage: range(1,20,-1)
[]
sage: range(20,1,1)
[]
}}}
Adding - and + Infinity, we will have a lot of arguments which will build
an emptyset. Currently, I did not find a good empty set with categories.
My code does not allow negative ``step`` and check that ``begin`` <
``end`` to avoid the empty case.
On other hand, my current status is:
Benchmarks for my PhD Thesis --> add number_of_transitive_group --> Add
enumerated set of TransitiveGroups() --> Add PositiveInteger --> Add
IntegerRange feature --> MAX DEPTH OF RECURSION...
As this EmptySet (with categories) is an empty thing, I have an idea of
who can implemented that ?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8519#comment:10>
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.