The Museum of HP Calculators

HP Forum Archive 19

[ Return to Index | Top of Index ]

Matrix software for the 41
Message #1 Posted by Geir Isene on 21 May 2009, 5:36 p.m.

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
Message #2 Posted by Raymond Del Tondo on 21 May 2009, 8:26 p.m.,
in response to message #1 by Geir Isene

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
Message #3 Posted by Angel Martin on 22 May 2009, 1:54 a.m.,
in response to message #2 by Raymond Del Tondo

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
Message #4 Posted by Geir Isene on 22 May 2009, 2:39 a.m.,
in response to message #2 by Raymond Del Tondo

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
Message #5 Posted by Angel Martin on 23 May 2009, 5:07 a.m.,
in response to message #4 by Geir Isene

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
Message #6 Posted by Geir Isene on 23 May 2009, 10:27 a.m.,
in response to message #5 by Angel Martin

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
Message #7 Posted by Valentin Albillo on 22 May 2009, 5:12 a.m.,
in response to message #1 by Geir Isene

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
Message #8 Posted by Ángel Martin on 22 May 2009, 7:39 a.m.,
in response to message #7 by Valentin Albillo

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
Message #9 Posted by Geir Isene on 23 May 2009, 10:29 a.m.,
in response to message #7 by Valentin Albillo

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.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall