Post Reply 
(12C) Square Root
10-03-2019, 02:01 AM (This post was last modified: 10-03-2019 04:13 AM by Gamo.)
Post: #3
RE: (12C) Square Root
Thanks Albert Chan
Very interesting article.

I have streamline this program a bit, now no counter, with an educated guess,
program will take on average less than 5 iterations.
This program update included Pause to observe each iterations until converge to an answer.

Program:
Code:

01 STO 2
02 R↓
03 STO 1
04 RCL 1
05 RCL 2
06  ÷
07 LSTx
08  +
09  2
10  ÷
11 PSE
12 STO 3
13 RCL 2
14  -
15 LSTx
16  ÷
17  0
18 X<>Y
19 X≤Y
20 CHS
21 EEX
22 CHS
23  8
24 X<>Y
25 X≤Y
26 GTO 30
27 RCL 3
28 STO 2
29 GTO 04
30 RCL 3

Hints:
Program line 17 to 20 is the [ABS] function with this routine we avoid using n [ENTER] [x] [√x] because
it is kind of funny to use [√x] in program while this program is looking for the Square Root. Smile
This [ABS] function routine is also work good on HP-10C I have post earlier here

https://www.hpmuseum.org/forum/thread-12138.html

Gamo
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(12C) Square Root - Gamo - 10-02-2019, 10:23 AM
RE: (12C) Square Root - Albert Chan - 10-02-2019, 02:36 PM
RE: (12C) Square Root - Albert Chan - 09-28-2020, 05:18 PM
RE: (12C) Square Root - Albert Chan - 09-28-2020, 07:14 PM
RE: (12C) Square Root - Gamo - 10-03-2019 02:01 AM
RE: (12C) Square Root - SlideRule - 09-28-2020, 09:45 PM
RE: (12C) Square Root - Albert Chan - 06-08-2021, 03:36 PM
RE: (12C) Square Root - depor - 12-21-2023, 11:50 PM
RE: (12C) Square Root - Dave Hicks - 12-23-2023, 01:48 AM
RE: (12C) Square Root - Thomas Klemm - 12-23-2023, 04:26 AM



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