The HP71B Program That Caused Some Tech Queries - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: The HP71B Program That Caused Some Tech Queries (/thread-175295.html) |
The HP71B Program That Caused Some Tech Queries - Namir - 11-29-2010 After all the discussions with my problems with the HP71B. Here is the program that solves the roots of a polynomial using the Abterth method. Edit the Data statements in lines 100, 120, and 170 to change the operational parameters and/or the polynomial coefficients.
10 REM POLYNOMIAL ROOTS USING ABERTH ALGORITHM BY NAMIR C SHAMMAS Enjoy! Namir
Edited: 30 Nov 2010, 2:45 p.m. after one or more responses were posted
Re: The HP71B Program That Caused Some Tech Queries - Christoph Giesselink - 11-30-2010 Hi Namir, I tried to type in your code on Emu71. I can't run your code at the moment. I recognized two problems. 1) program input problems 440 IF ABS(D1(I)) > T0 THEN C0 - 1 is an invalid line. I think you mean 440 IF ABS(D1(I)) > T0 THEN C0 = 1 2) runtime problems Line 260 R(I)=(1,0) fail at runtime -> variable I is out of scope (I=-1) To all: Does anybody know a method or tool to convert such a text listing into LIF or DAT format that it can be read by ILPer or by Emu71?
Christoph
Re: The HP71B Program That Caused Some Tech Queries - J-F Garnier - 11-30-2010 Does anybody know a method or tool to convert such a text listing into LIF or DAT format that it can be read by ILPer or by Emu71? With Emu71/DOS, a convenient method to import such small programs like this is the 'cut&paste' method (In the Command window, you have to select the paste command, ctrl-v will not work). J-F
Re: The HP71B Program That Caused Some Tech Queries - Namir - 11-30-2010 Thanks! I corrected the listing accordingly. If you are running the program under EMU71 you can remove the PAUSE in line 510, to let the program display all of the results in one swoop. Namir
Edited: 30 Nov 2010, 3:02 p.m.
Re: The HP71B Program That Caused Some Tech Queries - Namir - 12-01-2010 Thanks for the tip Jean-Francois!! Makes program input to the EMU71 much much easier!
|