group(deprecated)/RandElement - Maple Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : group(deprecated)/RandElement

group(deprecated)

 RandElement
 find a random element of a given group

 Calling Sequence RandElement(g)

Parameters

 g - permgroup or a grelgroup

Description

 • Important: The group package has been deprecated. Use the superseding command GroupTheory[RandomElement] instead.
 • This function finds a random element of the group g. A random element of g is returned.
 • The command with(group,RandElement) allows the use of the abbreviated form of this command.

Examples

Important: The group package has been deprecated. Use the superseding command GroupTheory[RandomElement] instead.

 > $\mathrm{with}\left(\mathrm{group}\right):$
 > $g≔\mathrm{permgroup}\left(5,\left\{\left[\left[1,2,3,4,5\right]\right],\left[\left[2,3\right],\left[4,5\right]\right]\right\}\right):$
 > $e≔\mathrm{RandElement}\left(g\right)$
 ${e}{≔}\left[\left[{1}{,}{5}{,}{4}\right]\right]$ (1)
 > $\mathrm{groupmember}\left(e,g\right)$
 ${\mathrm{true}}$ (2)

 See Also