![]() |
HP 35s:Sys. of Lin. Eq. with Complex numbers - 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: HP 35s:Sys. of Lin. Eq. with Complex numbers (/thread-136923.html) |
HP 35s:Sys. of Lin. Eq. with Complex numbers - Jamie Slade - 05-05-2008 HP-35s Edited: 5 May 2008, 10:17 p.m. after one or more responses were posted
Re: HP 35s:Sys. of Lin. Eq. with Complex numbers - Stefan Vorkoetter - 05-05-2008 My Matrix Multi-tool for the HP 35s program can solve systems of simultaneous equations with complex coefficients (up to 18 equations in 18 unknowns).
Stefan
Re: HP 35s:Sys. of Lin. Eq. with Complex numbers - Karl Schneider - 05-06-2008 Jamie -- I'll try an example of a complex-valued linear system from the HP-15C manual tomorrow on the HP-35s, but I wouldn't be surprised if the HP-35s manual has misled you. True, a variable in an equation or program may contain a complex value, but I'd believe that SOLVE and INTEG act upon only the real-valued portion of the calculated expression, due to limitations of computing power. Extra algorithmic sophistication would be required in order to find the complex-valued solutions of complex-valued linear systems -- it would entail solving a real-valued system of twice the dimension, after first recognizing that the system is complex-valued. Of course, it's also possible that your complex-valued system is not linearly independent, and therefore has no solution. However, if my presumption is correct that complex-valued linear-system solution is not supported, you'll need Stefan's program or similar to attain such a capability. -- KS
Edited: 8 May 2008, 12:57 a.m. after one or more responses were posted
Re: HP 35s:Sys. of Lin. Eq. with Complex numbers - Valentin Albillo - 05-06-2008 Hi, Karl: Karl posted:
You can download the full article (and program) in PDF format from the "Articles" section at my calc web site, it makes for good reading and has a number of interesting examples and techniques.
"[...] it would entail solving a
Best regards from V.
Re: HP 35s:Sys. of Lin. Eq. with Complex numbers - Antonio Maschio (Italy) - 05-06-2008 Wonderful article! And useful!
-- Antonio
Thanks, Antonio :-) [NT] - Valentin Albillo - 05-06-2008 Best regards from V.
Re: HP 35s:Sys. of Lin. Eq. with Complex numbers - Jamie Slade - 05-06-2008 Thank you V, I can't wait to try your program. Edited: 6 May 2008, 12:04 p.m.
Re: HP 35s:Sys. of Lin. Eq. with Complex numbers - Jamie Slade - 05-06-2008 Thank You Stefan, I will try this program tommorow
Re: HP 35s:Sys. of Lin. Eq. with Complex numbers - Valentin Albillo - 05-06-2008 Hi, Jamie:
That task will be explicitly addressed in another Datafile article that my best friend Fernando del Rey is just finishing right now and which does include an HP35s program to do exactly what you want, i.e., solving NxN systems of real- or complex-valued linear equations for arbitrary N limited only by available RAM. If I'm not wrong it's due next issue so you won't have to wait very long, about a month or so if all goes well.
Re: HP 35s:Sys. of Lin. Eq. with Complex numbers - Valentin Albillo - 05-07-2008 Hi, Stefan:
Now, I want to comment on a couple of things you state there, namely: (Re the TI SR-52, the underlining is mine) "This calculator had 224 steps of program memory, 20 registers, and a magnetic card reader. It was only slightly less powerful than the HP-67. "
"My teacher (who also taught computer science), was all in favour of the idea, and even said I could use the program during a test. He figured if I was smart enough to program it [...] I obviously knew the algorithm inside out and backwards."
90 minutes allotted time, even after thoroughly checking it all before standing up and leaving. Best regards from V.
Re: HP 35s:Sys. of Lin. Eq. with Complex numbers - Stefan Vorkoetter - 05-07-2008 Hi Valentin: Yes, I think you're right. I've replied in more detail in the thread started by Marcus.
Stefan
Re: HP 35s:Sys. of Lin. Eq. with Complex numbers - Karl Schneider - 05-08-2008 Hi, Valentin --
Quote: Since you stated it, I'm sure that it's true. However, it would seem almost accidental, as the HP-35s lacks the processing speed (not as fast as Pioneers) to solve for complex-valued roots of user-defined equations. Furthermore, the predecessor RPN-based models did not offer this capability, so some new code would have had to be developed. The slow HP-15C allows programs that utilize and produce complex-valued numbers to serve as integrands and mathematical functions for SOLVE. However, only the real part of the output is utilized by SOLVE/INTEG. In many cases, though, this is sufficient for practical applications.
Quote: I surmise that the same 5x5 system could be utilized if complex math were supported, but the number of operations should be comparable. "Tired" the real transformation might be, but it is straightforward, easily reversible, and should be generally reliable (except perhaps if the complex numbers somehow transform to an ill-conditioned matrix). It simply provides an explicit decomposition of the complex-valued arithmetic to its real-valued steps, allowing the same algorithms to be used, thus making it a natural approach for the HP-15C. Here's an illustration for anyone who might not understand the purpose of the HP-15C matrix transformations for complex numbers. For instance, why is the left-side multiplicand transformed to a square matrix, but not the right-side multiplicand?
Py,x ("convert to partioned") {a, b, c, d} are real-valued; they could be scalars, or matrices with {a, b} and {c, d} of suitably-matching dimensions.
These manual procedures make logical sense to those who know their linear algebra well, but are probably not very intuitive to those who don't. Given the limitations of the hardware, however, I'd say that the developers of the HP-15C did a near-ideal job. -- KS
Edited: 9 May 2008, 3:03 a.m.
|