Ratio to Continued Fraction

Description:Convert ratios of two integers to/from continued fractions. For example, for input '355/113', the output is { 3 7 16 } because 355/113 = 3 + (1 / ((7 + (1 / 16)))) which is written as { 3 7 16 } in continued fraction shorthand, with only the partial quotients in the list, not the numerators which are always 1. Written in System RPL.
Filename:r2cf.zip
ID:8804
Author:Joseph K. Horn: http://HolyJoe.Org
Downloaded file size:2,315 bytes
Size on calculator:1 KB
Platforms:49/50  
User rating:Not yet rated (you must be logged in to vote)
Primary category:Math/Misc
Languages:ENG  
File date:2018-03-18 11:05:45
Creation date:2015-09-17
Source code:Included
Download count:309
Version history:2018-03-18: Added to site
Archive contents:
  Length      Date    Time    Name
---------  ---------- -----   ----
      196  2018-03-18 11:05   R2CF.HP
     5707  2018-03-18 11:00   r2cf.html
---------                     -------
     5903                     2 files
User comments:

No comments at this time.

You must be logged in to add your own comment.


Part of the HP Calculator Archive,
Copyright 1997-2024 Eric Rechlin.