Small Solver Program
|
02-14-2019, 05:25 AM
Post: #1
|
|||
|
|||
Small Solver Program
Recently I try to make a small but versatile solver program specifically
for HP Voyager Series calculator. This solver solve for f(x) = 0 and use some type of counter for iteration. Due to the iteration process this program will run slow on Original Calculator. With modern 12C, 15C, and all other emulator this will run extremely fast. This program is intended for HP-11C but this example will use HP-15C emulator so that this solver program result can be compare with the 15C build-in SOLVE function. --------------------------------------------------------- To run program. Enter 2 guesses closest to the root. X1 [ENTER] X2 [A] display answer // Use this Solver X1 [ENTER] X2 f [SOLVE] [E] display answer // Use 15C build-in SOLVE --------------------------------------------------------- Example for X^X = Y // X to the power of X equal to Y X on R1 // Register Storage 1 // For this Sover Y on R5 // Register Storage 5 X on R2 // Register Storage 2 // For 15C SOLVE Y on R5 // Register Storage 5 -------------------------------------------------------- Program: Code:
Example: X^X = 1000 STORE 1000 to R5 // [STO] 5 This Solver 4 [ENTER] 6 f [A] display 4.555535704 ------------------------------------------------------- 15C SOLVE 4 [ENTER] 6 f [SOLVE] [E] display 4.555535705 ------------------------------------------------------- Remark: For this solver answer is in R1 For 15C SOLVE answer is in R2 Gamo |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: