RandomElement - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


GroupTheory

  

RandomElement

  

produce a random element of a group

  

RandomInvolution

  

produce a random involution of a group

  

RandomPElement

  

produce a random p-element of a group

  

RandomPPrimeElement

  

produce a random element of a group with order relatively prime to p

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

RandomElement( G )

RandomInvolution( G )

RandomPElement( p, G )

RandomPPrimeElement( p, G )

Parameters

G

-

a permutation group

p

-

a prime number

Description

• 

The RandomElement( G ) command returns a randomly selected element of the group G.

• 

The RandomInvolution( G ) command returns a randomly selected involution (element of order ) of the group G. An exception is raised if G has odd order (as in that case, G contains no involutions).

• 

For a prime number p, the RandomPElement( p, G ) command returns a random element of the group G with order equal to a power of p. An exception is raised in case p does not divide the order of G.

• 

For a prime number p, the RandomPPrimeElement( p, G ) command returns a random element of the group G with order relatively prime to p. An exception is raised if G is a -group.

Examples

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

(9)

(10)

(11)

(12)

(13)

(14)

(15)

(16)

(17)

(18)

{ to 100 do PermOrder( RandomPElement( 2, G ) ) end };

(19)

{ to 100 do PermOrder( RandomPPrimeElement( 2, G ) ) end };

(20)

{ to 100 do PermOrder( RandomInvolution( G ) ) end };

(21)

Compatibility

• 

The GroupTheory[RandomElement] command was introduced in Maple 17.

• 

For more information on Maple 17 changes, see Updates in Maple 17.

• 

The GroupTheory[RandomInvolution], GroupTheory[RandomPElement] and GroupTheory[RandomPPrimeElement] commands were introduced in Maple 2019.

• 

For more information on Maple 2019 changes, see Updates in Maple 2019.

See Also

GroupTheory

GroupTheory[Group]

 


Download Help Document