HP Forums
Matrix software for the 41 - 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: Matrix software for the 41 (/thread-151015.html)



Matrix software for the 41 - Geir Isene - 05-21-2009

I've not been doing matrix calculations since uni, but I'm wondering about your viewpoint on which module provides the best tool set to handle matrices. We have the Advantage module, the CCD Rom, the PPC and others. Anyone up for a short review of this?


Re: Matrix software for the 41 - Raymond Del Tondo - 05-21-2009

The Advantage module includes the CCD module Matrix functions,

plus some more, and both can of course handle matrices in X-Memory.

The Advantage module has some more math oriented functions than the CCD module,

whereas the CCD module covers some other topics, like OS extensions, FOCAL program manipulation, etc.

A good combination would be the Advantage module and my CCD OS/X ;-)

HTH

Raymond


Re: Matrix software for the 41 - Ángel Martin - 05-22-2009

I agree with Raymond, the Advantage's implementation is better - just because they (legally) copied the CCD's from the scratch. They (HP, that is) also added a few important utilities also in MCODE, which were sorely missing in the CCD.

In fact a Matrix-less version of the CCD Module is what I decided to do once the superiority of the Advantage in this area was clear. I took them all off and replaced them with more general-purpose functions, in an 8k module - the "Modified CCD", also at TOS.

Raymond's OS/X is of course an absolute must to have on every system, a 4k jewel with all the great OS extensions from the CCD.

I wrote a few more matrix routines using the Advantage and the Sandmath functions, they may be interesting to you as well. They're in the upper 4k of the SandMath_3 module, available at TOS. One of them I fondly remember was a brute-force eigenvalues solver using the Advantages SOLVE function, where the characteristic equation to solve involves of course calculating the determinant on each iteration... fun to watch.

Best,
'AM


Re: Matrix software for the 41 - Geir Isene - 05-22-2009

Quote:
A good combination would be the Advantage module and my CCD OS/X ;-)

... which incidentally is my favorite setup (CCD OS/X, ICEBOX, Advantage on a NoV-64) - but not because of the matrix functions. According to you guys I should be well set to dive into matrices once again. I should have a look at the eigenvalues solver - maybe port it to another module (ICEBOX) to not use to much memory space with the full Sandbox.


Re: Matrix software for the 41 - Valentin Albillo - 05-22-2009

Hi, Geir Isene:

    You may also want to download and have a look at my 9-page article Long Live the Advantage ROM! in PDF format, which reviews its most important features and includes a sample program utilizing to the fullest some of them.

    It will probably give you a fair idea of what it is, what it can do, and its programming style.

Best regards from V


Re: Matrix software for the 41 - Ángel Martin - 05-22-2009

Indeed Valentin's excellent program showcases the Advantage prowess at matrix crunching..

Just to mention that it *is* also included into the SandMath_3 rom, under the POLFIT name. - so you won't have to type it in :-)

----------------

Here's the listing of the EIGEN program for your enjoyment - don't forget it's a brute-force approach, so you won't find math artistry in here... yet it's below 40 program steps.

The idea is simply to apply the definitions: solve for x so that Det([A]-x[I])= 0; where [I] is the identity matrix of same order as [A].

01 LBL "EIGEN"
02 "ORDER=?"
03 PROMPT
04 E
05 E3/E+
06 *
07 "AA"
08 MATDIM
09 XROM "IMR
10 DIM?
11 "!!"
12 MATDIM
13 LBL 00
14 "LOW'VAL=?"
15 PROMPT
16 "HI'VAL=?"
17 PROMPT
18 "SOLVING…"
19 AVIEW
20 "*VP"
21 SOLVE
22 TONE 4
23 "VP="
24 ARCL X
25 PROMPT
26 GTO 00
27 LBL "*VP"
28 STO 00
29 "!!"
30 XROM "MIDN"
31 RCL 00
32 "X"
33 MAT*
34 "!!,AA,!!"
35 MAT-
36 "!!"
37 MDET
38 END

Best,
ÁM


Edited: 22 May 2009, 9:43 a.m.


Re: Matrix software for the 41 - Ángel Martin - 05-23-2009

Hi Geir,

The Eigenvalue solver (as well as many routines called by it and math programs) is not on the SandBox, but on the SandMath_3 - so porting it to the ICEBOX doesn't seem to be a good game plan.

There are a couple of programs in the SandMath_3 (not Valentin's) that really don't live up to the noble goal of being superb, so maybe you've got some of that kind to add to it - it'll be good. MCODE better, but not required :)

Best,

AM


Re: Matrix software for the 41 - Geir Isene - 05-23-2009

I will look in to this (but don't hold your breath :)

On another note, it would be great if you could help me out on filling in the blanks of the ICEBOX manual: ICEBOX page


Re: Matrix software for the 41 - Geir Isene - 05-23-2009

Quote:
You may also want to download and have a look at my 9-page article Long Live the Advantage ROM! in PDF format, which reviews its most important features and includes a sample program utilizing to the fullest some of them.
It will probably give you a fair idea of what it is, what it can do, and its programming style.

Now, that's a great article. Thank you very much.