Continued fraction/Arithmetic
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