#10724: include support for beta variables for partitions
-----------------------------+----------------------------------------------
Reporter: pdehaye | Owner: sage-combinat
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: combinatorics | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Comment(by benjaminfjones):
Patch applies cleanly to sage-4.6.2.alpha2.
I get a strange error when giving beta number sequences with the wrong
number of elements:
{{{
sage: Partition(beta_numbers=([6,3,2],[4,1]))
310 b = beta_numbers[1]
311 if len(a) <> len(b):
--> 312 raise ValueError, '%s is not a valid partition, the
sequences of coordinates need to be the same length'%beta_numbers
313 # should add tests to see if a and b are sorted down,
nonnegative and strictly decreasing
314 r = len(a)
TypeError: not all arguments converted during string formatting
}}}
I was expecting to get a ValueError. I get the same strange error if I
try:
{{{
sage: Partition(beta_numbers=([6,3,2],[4,1,-1]))
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10724#comment:4>
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.