Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

orbit

Orbits of integers


Description

Finds the orbit of a given integer

Usage

orbit_single(c1,n1)
orbit(cyc,n)

Arguments

c1,n1

In (low-level) function orbit_single(), a cyclist and an integer vector respectively

cyc,n

In (vectorized) function orbit(), cyc is coerced to a cycle, and n is an integer vector

Value

Given a cyclist c1 and integer n1, function orbit_single() returns the single cycle containing integer n1. This is a low-level function, not intended for the end-user.

Function orbit() is the vectorized equivalent of orbit_single().

Author(s)

Robin K. S. Hankin

See Also

Examples

data(megaminx)
orbit(megaminx,13)


# orbit() is vectorized:
x <- cycle(list(list(a=1:2,4:6,8:10)))
orbit(x,1:10)

permutations

The Symmetric Group: Permutations of a Finite Set

v1.0-9
GPL-2
Authors
Robin K. S. Hankin [aut, cre] (<https://orcid.org/0000-0001-5982-0415>), Paul Egeler [ctb] (<https://orcid.org/0000-0001-6948-9498>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.