Talk:Zeckendorf arithmetic: Difference between revisions

From Rosetta Code
Content added Content deleted
mNo edit summary
Line 7: Line 7:
My output matches the first test of the tcl entry, which obviously also disagrees with the Perl output.
My output matches the first test of the tcl entry, which obviously also disagrees with the Perl output.


In turn the next line is 100101 -z 100 = 100010 # subtraction, which I read as 17-3 = 15. [[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 22:32, 21 August 2018 (UTC)
In turn the next line is 100101 -z 100 = 100010 # subtraction, which I read as 17-3 = 15.

Obviously, you can refer to [[Zeckendorf_number_representation#Perl_6]] to confirm or dispute my findings.

[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 22:32, 21 August 2018 (UTC)

Revision as of 01:09, 22 August 2018

Spelling should be "arithmetic".

Got it. --Mwn3d 14:45, 29 October 2012 (UTC)

Perl 6 error

I get 10100 + 1010 = 101000, aka 11 + 7 = 18 which contradicts the Perl 6 output of 10100 +z 1010 = 100101 # addition.

My output matches the first test of the tcl entry, which obviously also disagrees with the Perl output.

In turn the next line is 100101 -z 100 = 100010 # subtraction, which I read as 17-3 = 15.

Obviously, you can refer to Zeckendorf_number_representation#Perl_6 to confirm or dispute my findings.

Pete Lomax (talk) 22:32, 21 August 2018 (UTC)