Talk:Zeckendorf arithmetic: Difference between revisions

From Rosetta Code
Content added Content deleted
 
(One intermediate revision by one other user not shown)
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)

:Off-by-one issue fixed (affected: addition, subtraction, division) and warning removed. --[[User:SqrtNegInf|SqrtNegInf]] ([[User talk:SqrtNegInf|talk]]) 14:45, 4 April 2019 (UTC)

Latest revision as of 14:45, 4 April 2019

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)

Off-by-one issue fixed (affected: addition, subtraction, division) and warning removed. --SqrtNegInf (talk) 14:45, 4 April 2019 (UTC)