Post Reply 
HP50G : TRN vs TRAN
11-16-2019, 11:49 AM
Post: #1
HP50G : TRN vs TRAN
What is the difference between TRN and TRAN transpose-commands on the HP50G?

Thanks for your clues.

Regards,
Gil
Find all posts by this user
Quote this message in a reply
11-16-2019, 12:59 PM
Post: #2
RE: HP50G : TRN vs TRAN
Both return the transpose of a matrix when dealing with real numbers.

When dealing with complex matrices, TRAN just return the transpose whereas TRN returns the conjugate transpose.

See pages 3-255 and 3-258 of the AUR.

There are only 10 types of people in this world. Those who understand binary and those who don't.
Find all posts by this user
Quote this message in a reply
11-16-2019, 01:07 PM
Post: #3
RE: HP50G : TRN vs TRAN
(11-16-2019 12:59 PM)grsbanks Wrote:  Both return the transpose of a matrix when dealing with real numbers.

When dealing with complex matrices, TRAN just return the transpose whereas TRN returns the conjugate transpose.

See pages 3-255 and 3-258 of the AUR.

Strange that they didn't label it CTRN or something.
Visit this user's website Find all posts by this user
Quote this message in a reply
11-16-2019, 01:49 PM
Post: #4
RE: HP50G : TRN vs TRAN
(11-16-2019 01:07 PM)Dave Britten Wrote:  Strange that they didn't label it CTRN or something.

HERM, then

Cheers, Werner

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
Find all posts by this user
Quote this message in a reply
11-16-2019, 06:17 PM
Post: #5
RE: HP50G : TRN vs TRAN
(11-16-2019 01:07 PM)Dave Britten Wrote:  Strange that they didn't label it CTRN or something.

Perhaps it has to do with the fact that originally all matrix operations were directly taken from the ones already implemented in Saturn assembly language for the HP-71B Math ROM and there the conjugate transpose was named TRN.

Also, for complex matrices the conjugate transpose is by far the most useful operation as compared with just the transpose alone, which almost never appears in any algorithm or real-life application.

V.

  
All My Articles & other Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Quote this message in a reply
11-16-2019, 07:01 PM
Post: #6
RE: HP50G : TRN vs TRAN
Thanks.
I have got only the books for the HP48.
Lost the reference books relative to the HP50G?
Regards and thanks.
Gil
Find all posts by this user
Quote this message in a reply
11-16-2019, 07:12 PM
Post: #7
RE: HP50G : TRN vs TRAN
Strange that the instruction TRN, which includes the conjugate-operation, is from 5 to 10% faster than the "simpler" TRAN command.
Find all posts by this user
Quote this message in a reply
11-17-2019, 12:43 AM
Post: #8
RE: HP50G : TRN vs TRAN
Download the 50g AUR here: 50g AUR
Find all posts by this user
Quote this message in a reply
05-09-2021, 10:35 PM
Post: #9
RE: HP50G : TRN vs TRAN
Say X is the following Matrix:

[[ 1 6.35676254625 ]
[ 1 6.35675231425 ]
[ 1 6.3567482106 ]
[ 1 6.3567338557 ]],

without dots (.) after the ones.

Try a):
X TRAN X *

You get
[[ 4 25.4269969268 ]
[ 25.4269969268 161.633043179 ]]
(no dot after the 4).

Now try b):
X TRN X

You get apparently the same result:
[[ 4. 25.4269969268 ]
[ 25.4269969268 161.633043179 ]]
(but with a dot after the 4 => approximate mode).

Now try a2) :
X TRAN X * INV
YOU get
[[ 321639766412. -50598152402.8 ]
[ -50761421319.8 7985437126.68 ]]


Now try b2) :
X TRN X * INV
YOU get
[[ 322677625975. -50761421319.8 ]
[ -50761421319.8 7985437126.68 ]] }

The result are quite different.

Above all for the final result if I work for a regression, where
Beta = [(X'X)^(-1)X']Y,
where Y= [[ 20.0039363988 ]
[ 20.0039203398 ]
[ 20.0039138995 ]
[ 20.0039080362 ]].

I am somewhat puzzled in the choice
between TRN and TRAN when calculating
for the beta values.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 3 Guest(s)