Post Reply 
A somewhat different Newton solver (HP35s)
09-27-2018, 12:06 PM
Post: #7
RE: A somewhat different Newton solver (HP35s)
(09-26-2018 09:05 AM)Ángel Martin Wrote:  
Code:
10 RCL 01       ; h         ∆x/h
11 *            ; ∆x
12 RND         ;~∆x
13 ST- 00       ; x' = x - ∆x
14 X#0?         ; ∆x ~ 0 ?
15 GTO 00       ; loop

I don't think it's a good idea to round the calculated ∆x to display precision and then adjust x by this lower-precision value. So you should first adjust x (ST– 00) and then RND the delta and do the X≠0 test. Simply swap line 12 and 13.

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


Messages In This Thread
RE: A somewhat different Newton solver (HP35s) - Dieter - 09-27-2018 12:06 PM



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