combinat::necklaces::fromEvaluation – necklaces with prescribed evaluation

The combinatorial class of integral necklaces with prescribed evaluation

→ Examples

Superdomain

Dom::BaseDomain

Axioms

Ax::systemRep

Details:

isA – test if an object is a necklace

combinat::necklaces::fromEvaluation::isA(any type object, <composition evaluation>)

Returns whether object is a necklace.

If the optional argument is present, returns whether object is a necklace with evaluation evaluation.

count – number of integer necklaces with prescribed evaluation

combinat::necklaces::fromEvaluation::count(integer list evaluation)

Returns the number of integer necklaces with evaluation evaluation.

list – list of the integer necklaces with prescribed evaluation

combinat::necklaces::fromEvaluation::list(composition evaluation)

Returns the list of the integer necklaces with evaluation evaluation.

generator – generator for the integer necklaces with prescribed evaluation

combinat::necklaces::fromEvaluation::generator(composition evaluation)

Returns a generator for the integer necklaces with evaluation evaluation.

Example 1:

There are math necklaces with three 1's and three 2's:

combinat::necklaces::fromEvaluation::list([3, 3])

math

On the other hand, [1,1,1] is periodic, so there are no necklace with three 1's:

combinat::necklaces::fromEvaluation::list([3])

math

Background:

Changes in MuPAD 3.1

New Function.