Post Reply 
Convergents of a Continued Fraction
09-21-2024, 08:33 AM
Post: #7
RE: Convergents of a Continued Fraction
(09-20-2024 10:24 PM)C.Ret Wrote:  One easy way to achieve this on an HP-15C is to use the complex-stack. I’m not sure if the same trick can be applied to other HP calculators that support complex arithmetic.

This program is for the HP-42S:
Code:
00 { 27-Byte Prgm }
01▸LBL A
02 RCL× ST Y
03 RCL+ ST Z
04▸LBL E
05 ENTER
06 COMPLEX
07 ÷
08 PSE
09 R↓
10 RTN
11▸LBL C
12 0
13 1
14 COMPLEX
15 1
16 END

To use it set LCLBL and select the CUSTOM menu.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Convergents of a Continued Fraction - Thomas Klemm - 09-21-2024 08:33 AM



User(s) browsing this thread: 2 Guest(s)