Finds the orbit of a given integer
orbit_single(c1,n1) orbit(cyc,n)
Given a cyclist c1 and integer n1, function
c1
n1
orbit_single() returns the single cycle containing integer
orbit_single()
n1. This is a low-level function, not intended for the end-user.
Function orbit() is the vectorized equivalent of
orbit()
orbit_single().
In (low-level) function orbit_single(), a cyclist and an integer vector respectively
In (vectorized) function orbit(), cyc is coerced to a cycle, and n is an integer vector
cyc
n
Robin K. S. Hankin
fixed
data(megaminx) orbit(megaminx,13) # orbit() is vectorized: x <- cycle(list(list(a=1:2,4:6,8:10))) orbit(x,1:10)
Run the code above in your browser using DataLab