Post Reply 
[42S] Test for COMPLEX matrix
03-26-2015, 12:27 PM
Post: #13
RE: [42S] Test for COMPLEX matrix
So, for posterity, the CMAT? function:
CMAT? returns 1 for a complex matrix, 0 for everything else.

Code:

        L       X       Y       Z       T       A
In:             [[]]    y       z       t
Out:    -       0/1     [[]]    y       z       -

{ 23-Byte Prgm }
00*LBL"CMAT?"
01 CLA
02 MAT?
03 ARCL ST X
04 67
05 POSA
06 X<0?
07 ASTO ST X
08 SIGN
09 END


Cheers, Werner
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[42S] Test for COMPLEX matrix - Werner - 03-23-2015, 02:05 PM
RE: [42S] Test for COMPLEX matrix - Werner - 03-23-2015, 06:05 PM
RE: [42S] Test for COMPLEX matrix - Werner - 03-24-2015, 07:12 AM
RE: [42S] Test for COMPLEX matrix - Werner - 03-24-2015, 08:11 PM
RE: [42S] Test for COMPLEX matrix - Werner - 03-25-2015, 10:42 AM
RE: [42S] Test for COMPLEX matrix - Werner - 03-25-2015, 03:54 PM
RE: [42S] Test for COMPLEX matrix - Werner - 03-26-2015 12:27 PM



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