ContinuedFraction Command
- ContinuedFraction( <Number> )
-
Creates the continued fraction approximating a given number. The result is a LaTeX text object. The fraction is computed numerically within precision 10-8.
ContinuedFraction(5.45)
gives \(5 + \frac{1}{ 2+ \frac{1}{4+ \frac{1}{ 1+ \frac{1}{ 1 } } } }\)
- ContinuedFraction( <Number>, <Level> )
-
Creates the continued fraction approximating the given number. The number of quotients is less than or equal to Level, but never exceeding the number of quotients needed to achieve the numerical precision of 10-8.
ContinuedFraction(5.45, 3)
gives \(5 + \frac{1}{ 2+ \frac{1}{4+ ... } }\)
- ContinuedFraction( <Number>, <Level> (optional), <Boolean Shorthand> )
-
Creates the continued fraction approximating the given number. If the parameter Level is specified, the number of quotients is less than or equal to Level, but never exceeding the number of quotients needed to achieve the numerical precision of 10-8. When Shorthand is true, the LaTeX text uses a shorter syntax, and contains a list of the integer parts of the continued fraction.
-
ContinuedFraction(5.45, true)
gives [5; 2, 4, 1, 1] -
ContinuedFraction(5.45, 3, true)
gives [5; 2, 4, …]