Talk:Zeckendorf arithmetic: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
Line 4: Line 4:
==Perl 6 error==
==Perl 6 error==
I get 10100 + 1010 = 101000, aka 11 + 7 = 18 which contradicts the Perl 6 output of 10100 +z 1010 = 100101 # addition.
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. [[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. [[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 22:32, 21 August 2018 (UTC)

Revision as of 22:40, 21 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. Pete Lomax (talk) 22:32, 21 August 2018 (UTC)