Continued fraction/Arithmetic

From Rosetta Code
Revision as of 12:25, 4 February 2013 by Nigel Galloway (talk | contribs) (Created page with "By popular demand, see http://rosettacode.org/wiki/Talk:Continued_fraction#creating_a_continued_fraction and http://rosettacode.org/wiki/Talk:Continued_fraction#Arithmetics.3F...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

By popular demand, see http://rosettacode.org/wiki/Talk:Continued_fraction#creating_a_continued_fraction and http://rosettacode.org/wiki/Talk:Continued_fraction#Arithmetics.3F.3F, or be careful what you ask for.

This page is a placeholder for several subtasks which will eventually implement a function:

G(matrix NG, Continued Fraction N1, Continued Fraction N2)

which will perform basic mathmatical operations on continued fractions.

For these tasks continued fractions will be of the form:

so each may be described by the notation []

Subtasks:

  • Create a continued fraction from a rational number
  • Investigate matrix NG
  • Investigate G(matrix NG, Contined Fraction N)
  • The complete solution G(matrix NG, Continued Fraction N1, Continued Fraction N2)
  • Compare two continued fractions