Post Reply 
(12C) Numeric Solver
04-14-2017, 10:15 PM
Post: #3
RE: (12C) Numeric Solver
(04-14-2017 04:33 PM)Dieter Wrote:  
(04-13-2017 01:50 AM)Dwight Sturrock Wrote:  This solver uses Newton's method to solve f(x)=0. It is an adaptation of the HP-25 solver (HP-25 Application Programs, Chapter 5).

The program calculates h (in R3) as x/1E5. This does not work for x=0 since it yields h=0 and so the derivative gets zero, leading to a division by zero.

But this can be fixed easily:

...
RCL 1
RCL 1
X=0?
e^x

EEX
4
/
STO 3
...

After this change the GTOs of course need to be updated.

One more tip: instead of 2 [Y^X] always use [ENTER] [x]. This is much faster and exact.

Dieter

Thanks Dieter, I'll try your enhancements and repost.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(12C) Numeric Solver - Dwight Sturrock - 04-13-2017, 01:50 AM
RE: (12C) Numeric Solver - Dieter - 04-14-2017, 04:33 PM
RE: (12C) Numeric Solver - Dwight Sturrock - 04-14-2017 10:15 PM



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