The Museum of HP Calculators

HP Forum Archive 20

[ Return to Index | Top of Index ]

Matrix Library
Message #1 Posted by John Abbott (S. Africa) on 19 Oct 2011, 4:23 a.m.

Hi Marcus
I have found an error (finger trouble probably) in the matrix library - namely in wp34s-1.dat.
The first 'M-' label should read 'M-0'. The real 'M-' appears further down.
For Pauli - in the 'M-y' routine you execute a [cmplx]DROP, which does not leave
a descriptor on the stack. Should this not be just a DROP?
Regards John
BTW- Thanks for these routines. The LU routine (if included) would be great :)

Edited: 19 Oct 2011, 4:25 a.m.

      
Re: Matrix Library
Message #2 Posted by Paul Dale on 19 Oct 2011, 4:30 a.m.,
in response to message #1 by John Abbott (S. Africa)

Quote:
I have found an error (finger trouble probably) in the matrix library - namely in wp34s-1.dat.

Won't be finger trouble -- these are generated by the assembler from the sources in the library. Still, the source only has one 'M-' label so something has gone awry.

Quote:
For Pauli - in the 'M-y' routine you execute a [cmplx]DROP, which does not leave a descriptor on the stack. Should this not be just a DROP?

The matrix descriptor is saved in L. The value on the stack isn't the descriptor anymore -- it is a loop index for ISG that has finished. Thus, complex DROP is correct here.

Quote:
BTW- Thanks for these routines. The LU routine (if included) would be great :)

The LU routine will be back if we can find enough space for the wrapper. We're working on it.

- Pauli

            
Re: Matrix Library
Message #3 Posted by John Abbott (S. Africa) on 19 Oct 2011, 4:43 a.m.,
in response to message #2 by Paul Dale

Thanks Pauli, should have checked L - I just looked at the comments which said the descriptor was returned in X.
Thanks for the prompt response. I am really enjoying this calculator :)
Regards John

                  
Re: Matrix Library
Message #4 Posted by Paul Dale on 19 Oct 2011, 5:27 a.m.,
in response to message #3 by John Abbott (S. Africa)

There wasn't a comment on this routine about stack and register use????

I've added some clarification nonetheless. The documentation for these is in the doc directory.

- Pauli

                        
Re: Matrix Library
Message #5 Posted by John Abbott (S. Africa) on 19 Oct 2011, 8:49 a.m.,
in response to message #4 by Paul Dale

My apologies then, I mistook the comments above, applying to the functions below. Still love this wp34s - great effort and thanks!
Regards John

            
Re: Matrix Library
Message #6 Posted by Marcus von Cube, Germany on 19 Oct 2011, 10:17 a.m.,
in response to message #2 by Paul Dale

Quote:
Still, the source only has one 'M-' label so something has gone awry.
This must have been my fault when changing names from M. to M- in the (wrong) hope that would ease the navigation of the built-in matrix commands in the catalogs. I assume it has been fixed by Pauli now.
                  
Re: Matrix Library
Message #7 Posted by Walter B on 20 Oct 2011, 12:41 a.m.,
in response to message #6 by Marcus von Cube, Germany

... and at least some of these routines/commands will be renamed soon.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall