>> If I am not completely wrong, the cycle index composition should work, 
> 
> WOW!

testBell() in test/species.as.nw works and it checks against explicit 
values. That tests cycleIndexSeries $ SetPartition.

Furthermore the following test also succeeds

<<test polynomial series>>=
testPartitionViaCompose(): () == {
         macro {
                 V == CycleIndexVariable;
                 T == SparseIndexedPowerProduct(V, I);
                 P == SparseDistributedPolynomial(Q, V, T);
                 S == CycleIndexSeries;
         }
         import from P, DataStream P;
         cisPartition: S := cycleIndexSeries $ SetPartition(Z);
         cisSet: S := cycleIndexSeries $ SetSpecies(Z);
         local g: Generator P := generate {
                 yield 0$P; -- constant term
                 for n:I in 1.. repeat yield coefficient(cisSet, n);
         }
         cisNonEmptySet: S := stream(g)::S;
         cisPart: S := compose(cisSet, cisNonEmptySet);
         checkEquals(cisPartition, cisPart);
}
@

which is at least something, because the computation of cisPartition 
does not involve "compose", but rather uses the explicit formula given 
in BLL.

Still, there lurks a bug somewhere...

Ralf

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Aldor-combinat-devel mailing list
Aldor-combinat-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aldor-combinat-devel

Reply via email to