A Third Order Complex Linear Equation Solver for the hp 33s - 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: A Third Order Complex Linear Equation Solver for the hp 33s (/thread-117023.html) |
A Third Order Complex Linear Equation Solver for the hp 33s - Palmer O. Hanson, Jr. - 06-20-2007 In response to publication of my "Sixth Order Linear Equation Solver for the hp 33s" (Article No. 676) correspondent Gerson W. Barbosa wrote "... Now, a fourth or even a third order Complex Linear Equation Solver would be great, but that would be asking too much, I recognize." I have written a third order complex linear equation solver for the hp 33s. It is much too long to be in the Forum so it has been posted as Article 722. So far, I have only tested the program with three problems: 1. The test problem in Article 722. 2. The test problem in Article 722 modified to cause a determinant of zero which will trigger the "DIVIDE BY ZERO" abort.
2. The Simultaneous Equation problem from page 15-18 of the hp 33s User's Guide to demonstrate the capability to solve third order linear equations with real coefficients.
Re: A Third Order Complex Linear Equation Solver for the hp 33s - Gerson W. Barbosa - 06-21-2007 Quote: Hey, thank you very much Sir! Of course, when I said "asking too much" I didn't mean this was not feasible. I meant it was a difficult task to ask to someone who'd already given us a sixth order linear equation solver (and later even an eighth order one!). I am glad you have written this, even if it might not be so useful to you as it may be to some of us here. When I needed to solve complex linear systems at college, I relied on an HP-28S, but then I did write a program for the SHARP PC-1211 for a colleague, but the task was way easier in BASIC than it is in RPN keystroke programming.
Quote: I will try it later with a real problem I once had to solve at work. Best regards,
Gerson.
Mea Culpa - Palmer O. Hanson, Jr. - 06-24-2007 I listed the command at step M0058 incorrectly as STO (I) which, of course, is not a valid command. The command should be STO (i) .
Re: A Third Order Complex Linear Equation Solver for the hp 33s - Gerson W. Barbosa - 07-04-2007 For a problem this long, perhaps it should be useful if you include a length and checksum table in your article, so that the user has an easy way to check if everything was keyed in correctly:
A preference for roman numerals when choosing the labels or just a coincidence? I haven't checked your program with other problems, so the table should be checked against your own. By the way, my n-order complex equation solver for the CASIO PB-700 finds the same answers to your test problem in 14.5 seconds. Best regards, Gerson.
----------------------------------------------------------------------------------------------- Edited to correct a typo in line 130.
Edited: 5 July 2007, 5:05 p.m.
Re: A Third Order Complex Linear Equation Solver for the hp 33s - Palmer O. Hanson, Jr. - 07-06-2007 Gerson:
You wrote: Quote: I used the labels I did because those were the ones which were available with two other programs on the machine. That may mean that I have a distaste for roman numerals, but I don't think so. I match your lengths for all five programs. Unfortunately, I had to move my 33s programs around and had to use Label P instead of Label D. That means that the checksums for M and P are different. I devised the original test problems with pencil and paper so using integers was an easy way to do it. But, I am always a little nervous until I have also run a program such as this with non integers. I was using my HP-28s for another problem when I belatedly discovered that it can divide a complex vector by a complex matrix. I have subsequently run several problems with values other than integers and the HP-28s results and the HP-33s results agree.
Edited: 7 July 2007, 3:03 a.m.
|