Talk:Continued fraction/Arithmetic/Construct from rational number: Difference between revisions

From Rosetta Code
Content added Content deleted
Line 2: Line 2:
Note that [http://rosettacode.org/wiki/Continued_fraction Continued fraction] assumes Generators a and b are infinite. You may have to adjust [http://rosettacode.org/wiki/Continued_fraction Continued fraction] to allow for r2cf terminating. The generator for sqrt2 may be used with r2cf.--[[User:Nigel Galloway|Nigel Galloway]] 13:17, 4 February 2013 (UTC)
Note that [http://rosettacode.org/wiki/Continued_fraction Continued fraction] assumes Generators a and b are infinite. You may have to adjust [http://rosettacode.org/wiki/Continued_fraction Continued fraction] to allow for r2cf terminating. The generator for sqrt2 may be used with r2cf.--[[User:Nigel Galloway|Nigel Galloway]] 13:17, 4 February 2013 (UTC)
:Sorry I may have missed something but what does r2cf stand for?--[[User:Grondilu|Grondilu]] 17:28, 4 February 2013 (UTC)
:Sorry I may have missed something but what does r2cf stand for?--[[User:Grondilu|Grondilu]] 17:28, 4 February 2013 (UTC)
:: From the links, I'd guess “rational to continued fraction”. I think this task needs some work on naming! “<tt>Continued fraction arithmetic/Construct from rational number</tt>” would be a first guess; opinions? –[[User:Dkf|Donal Fellows]] 09:38, 5 February 2013 (UTC)

Revision as of 09:38, 5 February 2013

Using r2cf as Generator a in Continued fraction

Note that Continued fraction assumes Generators a and b are infinite. You may have to adjust Continued fraction to allow for r2cf terminating. The generator for sqrt2 may be used with r2cf.--Nigel Galloway 13:17, 4 February 2013 (UTC)

Sorry I may have missed something but what does r2cf stand for?--Grondilu 17:28, 4 February 2013 (UTC)
From the links, I'd guess “rational to continued fraction”. I think this task needs some work on naming! “Continued fraction arithmetic/Construct from rational number” would be a first guess; opinions? –Donal Fellows 09:38, 5 February 2013 (UTC)