-
-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Derangements #9005
Comments
Work Issues: It does not yet pass all doctests |
Attachment: derangements.sage.gz |
Changed work issues from It does not yet pass all doctests to none |
Changed author from Alasdair McAndrew to Alasdair McAndrew, Travis Scrimshaw |
Changed upstream from Not yet reported upstream; Will do shortly. to none |
comment:4
Converted the sage file into a patch and brought it up to our current standards. Ready for review. |
Reviewer: Ben Salisbury |
comment:6
The patch is not a proper patch file, patches should be generated using |
comment:7
Attachment: trac_9005-derangements-ts.patch.gz Sorry about that. Fixed. |
Merged: sage-5.10.beta1 |
The current implementation in Sage for derangements is a wrapper for the GAP "derangements" and "number_of_derangements" which is very restrictive. For example, it doesn't allow derangements of arbitrary lists or strings. The documentation observes
"Warning - Wraps GAP - hence mset must be a list of objects that have string representations that can be interpreted by the GAP interpreter. If mset consists of at all complicated Sage objects, this function does not do what you expect. A proper function should be written! (TODO!)"
This file is an attempt to provide that.
CC: @nathanncohen @ppurka
Component: combinatorics
Keywords: derangements
Author: Alasdair McAndrew, Travis Scrimshaw
Reviewer: Ben Salisbury
Merged: sage-5.10.beta1
Issue created by migration from https://trac.sagemath.org/ticket/9005
The text was updated successfully, but these errors were encountered: