I do think that P = Partitions(15, min_length=10, max_length=10); 
P.cardinality() also uses brute force. (at least P.cardinality?? says so).

Would be great, though!

Martin

Am Dienstag, 19. Februar 2019 21:43:36 UTC+1 schrieb Jori Mäntysalo (TAU):
>
> Is there a fast way to compute for example 
>
> Compositions(15, min_length=10, max_length=10).cardinality() 
>
> in some package already integrated to SageMath? For Partitions(...) that 
> seems to be the case, but Compositions(...) uses just brute enumeration. 
>
> -- 
> Jori Mäntysalo 
>
> Tampereen yliopisto - Ihminen ratkaisee

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to