powered by
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(). Vectorization is inherited from
cbind().
cbind()
The orbit of a fixed point \(p\) is \(\left\lbrace p\right\rbrace\); the code uses an ugly hack to ensure that this is the case.
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
orbit(as.cycle("(123)"),1:5) orbit(as.cycle(c("(12)","(123)(45)","(2345)")),1) orbit(as.cycle(c("(12)","(123)(45)","(2345)")),1:3) data(megaminx) orbit(megaminx,13)
Run the code above in your browser using DataLab