50g group photo

Yahoo Groups archive

50g

Index last updated: 2026-04-28 22:38 UTC

Thread

working with matrices

working with matrices

2007-10-28 by Dusan Mulac

Hi

i want to know, if it is possible to 'join' matrices on hp50g

by "join" i mean, if you have two matrices [A] and [B].. is it possible
to join them into [A B] (into one bigger matrix that contains both of
them, one next to the other (or maybe even one above the other).

Re: working with matrices

2007-10-29 by Juan C.

The function AUGMENT (RS MATRICES CREAT AUGMENTED)  can help you, but 
if you have [A] and [B]
it gives you:
[A]
[B]
to get [AB] you need a little program to transpose the two matrices 
then use AUGMENTED and transpose back.

Another way is to use COL+ ( RS MATRICES CREATE COL+)
Example: if you have two matrices A {3 2} in level 2 and B {3 4} in 
level 1 then you want B to be added as a third column in A matrix, so 
enter 3 and then COL+

A little program to get [AB]using COL+ is:

<<
      OVER          @ get a copy of matrix in level 2 @
      SIZE          @ get the size of that matrix @
      2 GET 1 +     @ get the number of columns and add 1 @
      COL+          @ Add the two matrices @
>>

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.