[SciPy-user] Finding all combinations of numbers

Roger Herikstad roger.herikstad@gmail....
Sun Jan 13 01:48:18 CST 2008


Thanks a lot guys! I can definitely use this.. : )
~ Roger

On Jan 13, 2008 3:12 PM, David Warde-Farley <dwf@cs.toronto.edu> wrote:

> On 13-Jan-08, at 2:05 AM, David Warde-Farley wrote:
>
> > If you wanted to exclude the empty, replace range(2**N) with
> > range(1,2**N), skipping the number 0. If you want it to include the
> > entire list, make the upper limit 2**N+1.
>
> And once again, I'm double-replying. I goofed; 2**N is the right upper
> limit to include L itself, so to exclude the 'full' subset, use 2**N -
> 1.
>
> DWF
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20080113/8d7c12aa/attachment.html 


More information about the SciPy-user mailing list