Talk:Sturmian word: Difference between revisions

From Rosetta Code
Content added Content deleted
Line 6: Line 6:
I can almost see from the second half how one might print sqrt(2), but not the golden ratio. Rather than just <math>\sqrt a</math>, surely it should have a,b,m,n in ''and'' m,n out??? [[User:Petelomax|Petelomax]] ([[User talk:Petelomax|talk]]) 16:14, 1 February 2024 (UTC)
I can almost see from the second half how one might print sqrt(2), but not the golden ratio. Rather than just <math>\sqrt a</math>, surely it should have a,b,m,n in ''and'' m,n out??? [[User:Petelomax|Petelomax]] ([[User talk:Petelomax|talk]]) 16:14, 1 February 2024 (UTC)


:The cf for ((sqrt(3)-1)/2) is [0;1,2,1,2..] and the sturmian word is apparently 010010010100100100101001001001... [[User:Petelomax|Petelomax]] ([[User talk:Petelomax|talk]]) 06:51, 6 February 2024 (UTC)
:The cf for ((sqrt(3)-1)/2) is [0;1,2,1,2..] and the sturmian word is apparently 010010010100100100101001001001... Further, isn't 0.618033 the inverse golden ratio, which would be
:<code>01001010010010100101001001010010</code> whereas the golden ration is actually 1.618033 which at least as I understand it should be<br>
:<code>10110101101101011010110110101101</code>? [[User:Petelomax|Petelomax]] ([[User talk:Petelomax|talk]]) 06:51, 6 February 2024 (UTC)

Revision as of 07:25, 6 February 2024

Clarify task

None of the submissions have an a or b in their code, or deal in any way with quadratic real numbers (not to/nor mention the stretch goal). The referenced continued fraction convergents task needs clarification, or you could use the a' search.
This task itself (probably) only needs minor clarification on how to find/use a'/convergents, for now we should stem the rot of further replication of the duff entries we already have (mea culpa).
I can almost see from the second half how one might print sqrt(2), but not the golden ratio. Rather than just , surely it should have a,b,m,n in and m,n out??? Petelomax (talk) 16:14, 1 February 2024 (UTC)

The cf for ((sqrt(3)-1)/2) is [0;1,2,1,2..] and the sturmian word is apparently 010010010100100100101001001001... Further, isn't 0.618033 the inverse golden ratio, which would be
01001010010010100101001001010010 whereas the golden ration is actually 1.618033 which at least as I understand it should be
10110101101101011010110110101101? Petelomax (talk) 06:51, 6 February 2024 (UTC)