combinat - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Discrete Mathematics : Combinatorics : combinat : combinat/randpart

combinat

  

randpart

  

construct a random partition

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

randpart(n)

Parameters

n

-

positive integer

Description

• 

The function randpart computes and returns a random partition of the positive integer n.  This consists of a random list of positive integers whose sum is n.

• 

The command with(combinat,randpart) allows the use of the abbreviated form of this command.

Examples

withcombinat,randpart

randpart

(1)

randpart10

2,2,6

(2)

randpart10

1,1,4,4

(3)

randpart10

1,2,2,5

(4)

See Also

combinat[partition]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam