StringTools[ThueMorse] - generate a Thue-Morse string
|
Calling Sequence
|
|
ThueMorse( n, a, b )
|
|
Parameters
|
|
n
|
-
|
non-negative integer; specifies that ThueMorse must return then nth Thue-Morse string
|
a
|
-
|
character; (optional) first symbol to use
|
b
|
-
|
character; (optional) second symbol to use
|
|
|
|
|
Description
|
|
•
|
The ThueMorse(n, a, b) command generates the length-n prefix of the (infinite) Thue-Morse string, with initial values a and b. The arguments after the first are optional, and default to the strings and , respectively.
|
•
|
The Thue-Morse string is the infinite string defined to be the fixed point of the iterated semigroup morphism on the free semigroup generated by .
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
|
|
Download Help Document
Was this information helpful?