For an extensive explanation of the problem, see the explanation.
Get it via cargo
.
cargo install translating-symbolic
To install cargo, run
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
If installed via cargo
, execute the command translating-symbolic
.
Otherwise, you can run the program by executing cargo run
in the root of this repository.
The program will read input from stdin
.
Type in a symbolic sequence in the following format:
LR
or L1R2
or LRLRLRLR
or L10R20
.
Whitespace is ignored.
On Enter, the symbolic sequence of the same cycle in the full model is displayed. This may be two coexisting cycles.
Ctrl-D
stops the program.
Suppose the model function
This model is referred to as the full model.
The model function of the halved model is a circle map
It has only two branches that are called
This program translates the symbolic sequences of a cycle in the halved model to its symbolic sequence in the full model.