On Dec 27, 9:11 am, David Perkinson <[email protected]> wrote:

Hi Dave,

> Here is a typical error when I try to run a combinatorial function:
>
> sage: combinations([1,2],3)
> ------------------------------------------------------------
>    File "<string>", line 1
>      [  ]gap>
>          ^
> SyntaxError: invalid syntax
>
> Linux Fedora 9, 2.6.27.7-53.fc9.i686 on a Thinkpad
> SAGE Version 3.1.4, Release Date: 2008-10-16
> installed from a binary
>
> Thanks for any suggestions.
>
> Dave

This works for me in Sage 3.2.2:

sage: combinations([1,2],1)
[[1], [2]]
sage: combinations([1,2],2)
[[1, 2]]
sage: combinations([1,2],3)
[]

Note that this code was recently (In Sage 3.2.0 or so IIRC) fixed.

Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to