HP50G : TRN vs TRAN

11162019, 11:49 AM
Post: #1




HP50G : TRN vs TRAN
What is the difference between TRN and TRAN transposecommands on the HP50G?
Thanks for your clues. Regards, Gil 

11162019, 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 3255 and 3258 of the AUR. There are only 10 types of people in this world. Those who understand binary and those who don't. 

11162019, 01:07 PM
Post: #3




RE: HP50G : TRN vs TRAN
(11162019 12:59 PM)grsbanks Wrote: Both return the transpose of a matrix when dealing with real numbers. Strange that they didn't label it CTRN or something. 

11162019, 01:49 PM
Post: #4




RE: HP50G : TRN vs TRAN
(11162019 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 

11162019, 06:17 PM
Post: #5




RE: HP50G : TRN vs TRAN
(11162019 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 HP71B 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 reallife application. V. All My Articles & other Materials here: Valentin Albillo's HP Collection 

11162019, 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 

11162019, 07:12 PM
Post: #7




RE: HP50G : TRN vs TRAN
Strange that the instruction TRN, which includes the conjugateoperation, is from 5 to 10% faster than the "simpler" TRAN command.


11172019, 12:43 AM
Post: #8




RE: HP50G : TRN vs TRAN
Download the 50g AUR here: 50g AUR


05092021, 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. 

« Next Oldest  Next Newest »

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