#14340: More doctests from the book "Calcul mathématique avec Sage"--Chap.
"domaines"
-------------------------------------------------+-------------------------
Reporter: mmezzarobba | Owner: tbd
Type: enhancement | Status:
Priority: major | needs_work
Component: documentation | Milestone: sage-5.12
Keywords: | Resolution:
Authors: Marc Mezzarobba, Nicolas M. | Merged in:
Thiéry, Paul Zimmermann | Reviewers: Frédéric
Report Upstream: N/A | Chapoton
Branch: | Work issues:
Dependencies: | Commit:
| Stopgaps:
-------------------------------------------------+-------------------------
Comment (by jdemeyer):
If you care about ordering, use `itertools.combinations` instead of
`Subsets`:
{{{
sage: from itertools import combinations
sage: list(combinations([x1,x2,x3,x4],2))
[(x1, x2), (x1, x3), (x1, x4), (x2, x3), (x2, x4), (x3, x4)]
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/14340#comment:14>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.