Difference between revisions of "ContinuedFraction Command"
From GeoGebra Manual
Line 9: | Line 9: | ||
;ContinuedFraction[ <Number>, <Level (optional)>, <Shorthand true|false> ] | ;ContinuedFraction[ <Number>, <Level (optional)>, <Shorthand true|false> ] | ||
:Meaning of first two arguments is same as above. When ''Shorthand'' is true, shorter syntax for the result is used: the LaTeX text contains a list of the integer parts of the continued fraction. | :Meaning of first two arguments is same as above. When ''Shorthand'' is true, shorter syntax for the result is used: the LaTeX text contains a list of the integer parts of the continued fraction. | ||
− | :{{ | + | :{{Examples|1=<br> |
− | : | + | :*'''<code>ContinuedFraction[5.45, true]</code>''' gives [5; 2, 4, 1, 1] |
+ | :*'''<code>ContinuedFraction[5.45, 3, true]</code>''' gives [5; 2, 4, ...]}} |
Revision as of 00:01, 16 October 2012
This page is about a feature that is supported only in GeoGebra 4.2. |
- ContinuedFraction[ <Number> ]
- Creates continued fraction of given number. The result is a LaTeX text object. The fraction is computed numerically within precision 10-8.
- Example:
ContinuedFraction[5.45]
gives 5 + \frac{1}{ 2+ \frac{1}{4+ \frac{1}{ 1+ \frac{1}{ 1 } } } }
- ContinuedFraction[ <Number>, <Level> ]
- Creates continued fraction of given number. Number of quotients is less than or equal to Level, but never exceeds the number of quotients needed to achieve the precision mentioned above.
- Example:
ContinuedFraction[5.45, 3]
gives 5 + \frac{1}{ 2+ \frac{1}{4+ ... } }
- ContinuedFraction[ <Number>, <Level (optional)>, <Shorthand true|false> ]
- Meaning of first two arguments is same as above. When Shorthand is true, shorter syntax for the result is used: the LaTeX text contains a list of the integer parts of the continued fraction.
- Examples:
ContinuedFraction[5.45, true]
gives [5; 2, 4, 1, 1]ContinuedFraction[5.45, 3, true]
gives [5; 2, 4, ...]