(28/48/49/50) Convergents of Continued Fraction
|
12-18-2023, 07:57 PM
Post: #1
|
|||
|
|||
(28/48/49/50) Convergents of Continued Fraction
These programs converts a list of integers representing a continued fraction to a list of convergents of the continued fraction. See also the second and third basic examples here. On the 49 and 50 in exact mode, the sizes of the lists are limited only by memory. Older calculators are limited by their 12-digit integers.
The first program is for the HP 49 and 50 with the ListExt library. Code:
The next program is for the HP-28 and 48. It returns the convergents as 2-element sublists because the older models do not support exact rational numbers. Code:
On the HP 49 and 50, this program may be used very effectively with the LongFloat library and Joe Horn's PDQ and R2CF. As an example, this short program takes a long real number (from LongFloat) and returns a continued fraction exactly representing the number. Code:
|
|||
12-18-2023, 08:25 PM
Post: #2
|
|||
|
|||
RE: (28/48/49/50) Convergents of Continued Fraction
Somewhat related: Convergents of a Continued Fraction
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)