Post Reply 
HP 41C solver problem
12-07-2017, 03:58 PM
Post: #12
RE: HP 41C solver problem
(12-07-2017 10:39 AM)Dieter Wrote:  For the time being the original program may be changed like this. It's still not perfect but it does converge. ;-)

Code:
.. ...
35 RCL 06
36 *
37 -
38 STO 04
39 LastX     // last absolute change in x    
40 RCL 04
41 X=0?
42 SIGN      // if x=0 check absolute change (sign(0)=1 on the HP-41)
43 /         // else check relative change
44 ABS
45 1E-8
46 X>Y?
47 GTO 04
48 VIEW 04   // show current approximation
49 RCL 04
50 XEQ IND 03
51 STO 07
52 RCL 06
53 *
54 X>0?
.. ...

I like it! Thanks for the code. Maybe I'll try Anderson-Björk later.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP 41C solver problem - Trond - 12-07-2017, 03:17 AM
RE: HP 41C solver problem - Thomas Okken - 12-07-2017, 03:55 AM
RE: HP 41C solver problem - Trond - 12-07-2017, 04:27 AM
RE: HP 41C solver problem - Thomas Okken - 12-07-2017, 04:23 AM
RE: HP 41C solver problem - Trond - 12-07-2017, 05:08 AM
RE: HP 41C solver problem - Trond - 12-07-2017, 04:38 AM
RE: HP 41C solver problem - AlexFekken - 12-07-2017, 04:46 AM
RE: HP 41C solver problem - Trond - 12-07-2017, 05:43 AM
RE: HP 41C solver problem - Thomas Okken - 12-07-2017, 05:46 AM
RE: HP 41C solver problem - Dieter - 12-07-2017, 10:39 AM
RE: HP 41C solver problem - Thomas Okken - 12-07-2017, 01:56 PM
RE: HP 41C solver problem - Dieter - 12-07-2017, 06:10 PM
RE: HP 41C solver problem - Guenter Schink - 12-07-2017, 07:25 PM
RE: HP 41C solver problem - Trond - 12-07-2017 03:58 PM
RE: HP 41C solver problem - rprosperi - 12-07-2017, 11:37 PM
RE: HP 41C solver problem - hth - 12-08-2017, 05:13 PM
RE: HP 41C solver problem - Dieter - 12-08-2017, 06:58 PM
RE: HP 41C solver problem - hth - 12-08-2017, 07:25 PM
RE: HP 41C solver problem - Thomas Okken - 12-08-2017, 12:03 AM
RE: HP 41C solver problem - Dieter - 12-08-2017, 07:02 AM
RE: HP 41C solver problem - Thomas Okken - 12-08-2017, 02:50 PM
RE: HP 41C solver problem - Trond - 12-08-2017, 09:20 PM
RE: HP 41C solver problem - rprosperi - 12-08-2017, 11:16 PM
RE: HP 41C solver problem - rprosperi - 12-10-2017, 04:04 PM
RE: HP 41C solver problem - hth - 12-10-2017, 06:37 PM



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