(10C) Newton's Method Solution to f(x) = 0
|
03-13-2021, 05:15 AM
(This post was last modified: 03-14-2021 03:08 AM by Gamo.)
Post: #1
|
|||
|
|||
(10C) Newton's Method Solution to f(x) = 0
I don't see one here the Solution to f(x) = 0 program for the HP-10C
So I'm adapted this Newton's Method Solution to f(x) = 0 from the HP-25 Applications Book and since the HP-25 only got 49 programming space so it is possible to extended a bit more to work on the HP-10C or HP-12C as well. --------------------------------------- Procedure: Put f(x) equation at line 41 by start at [GTO] 40 and end with [GTO] 18 Set Precision to Register 2 : example [EEX] [CHS] 6 [STO] 2 [f] [PRGM] Enter the nearest X (Your guess) to the root then press [R/S] Root is save to Register 1 -------------------------------------- Program: Code:
Example: X^X = 1000 I will store 1000 to Register 5 Enter Precision: [EEX] [CHS] 6 [STO] 2 Enter Equation: [GTO] 40 [P/R] [LN] [LSTx] [x] [RCL] 5 [LN] [-] [GTO] 18 [P/R] Run: [f] [PRGM] Enter guess: 6 [R/S] ... about 30 second display 4.555536 To check answer: [RCL] 1 [RCL] 1 [Y^X] display 999.99997 Put to FIX 2: [f] [FIX] 2 dispaly 1,000.00 Remark: Program Line Number 32 to 35 is the [ABS] function. This [ABS] alogrithm only use the conditional test so it help on the program running speed especially on a program that do iterations. For more detail about this function here: https://www.hpmuseum.org/forum/thread-12138.html Gamo 3/2021 |
|||
03-15-2021, 04:41 AM
Post: #2
|
|||
|
|||
RE: (10C) Newton's Method Solution to f(x) = 0
(03-13-2021 05:15 AM)Gamo Wrote: I don't see one here the Solution to f(x) = 0 program for the HP-10C Have you seen this ? Have a look at page 9 ... V. All My Articles & other Materials here: Valentin Albillo's HP Collection |
|||
03-16-2021, 01:26 AM
Post: #3
|
|||
|
|||
RE: (10C) Newton's Method Solution to f(x) = 0
Valentin Albillo Thank You
I saw many of your articles they are all very interesting. Your f(x)=0 solver program is shorter too really nice. Gamo |
|||
03-16-2021, 02:46 AM
Post: #4
|
|||
|
|||
RE: (10C) Newton's Method Solution to f(x) = 0
(03-16-2021 01:26 AM)Gamo Wrote: Valentin Albillo Thank You You're welcome. Thanks to you for your interest and kind words, much appreciated. Regards. V. All My Articles & other Materials here: Valentin Albillo's HP Collection |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)