Sturmian word: Difference between revisions

m
it's the inverse golder ratio
(removed clarify tag)
m (it's the inverse golder ratio)
Line 15:
(If the programming language can represent infinite data structures, then that works too.)
 
A simple check is to do this for the inverse golden ratio <math>\frac{\sqrt{5}-1}{2}</math>, that is, <math>a=5, b=1, m = -1, n = 2 </math>, which would just output the [[Fibonacci word]].
 
Stretch goal: calculate the Sturmian word for other kinds of definable real numbers, such as cubic roots.
7,820

edits