Failure at stacking two matrices....
Posted: Mon Oct 22, 2007 7:25 am
Trying to stack two matrices into one, but no success for days. Can anyone help me to see which part goes wrong? Thanks.
Here is my program and output:
[1] DISP TR(ALPHAORT)
0.97456 0.22411 9.39326e-04 0.00000
0.01159 -0.05039 0.00239 0.99866
[2] DISP TR(%ALPHA1)*INV(OMEGA)
6662.33384 -27012.07346 -69.40077 -7486.57001
-6401.24550 8461.91272 192.20440 -19015.56708
[3] COMP IDLEFT = || TR(ALPHAORT) | TR(%ALPHA1)*INV(OMEGA) ||
[4] COMP IDRIGHT = || TR(%ALPHA1)*GAMMA*GY | %ZEROS(%R,1) ||
[5] DISP IDLEFT
0.97456
9.39326e-04 0.00000
6662.33384
-6401.24550 8461.91272
==> I thought IDLEFT will be a 4x4 matrix. The outcome is not right.
[6] DISP IDRIGHT
-368.27392
-692.51845
0.00000
0.00000
[7] COMP SOL = INV(IDLEFT)*IDRIGHT
Can't Find Match for INV(RECTANGULAR(REAL)). Closest Match is INV(MATRIX(REAL))
## SX27. Illegal Combination of Data Types for Operation
>>>>P SOL = INV(IDLEFT)<<<<
Furthermore, if there is a variable, whenever I try to re-declare it shows
## SX1. Identifier A is Already in use as a(n) RECTANGULAR(REAL)
How do I release it and change it to a new type?
I tried RELEASE, but had no success.
Here is my program and output:
[1] DISP TR(ALPHAORT)
0.97456 0.22411 9.39326e-04 0.00000
0.01159 -0.05039 0.00239 0.99866
[2] DISP TR(%ALPHA1)*INV(OMEGA)
6662.33384 -27012.07346 -69.40077 -7486.57001
-6401.24550 8461.91272 192.20440 -19015.56708
[3] COMP IDLEFT = || TR(ALPHAORT) | TR(%ALPHA1)*INV(OMEGA) ||
[4] COMP IDRIGHT = || TR(%ALPHA1)*GAMMA*GY | %ZEROS(%R,1) ||
[5] DISP IDLEFT
0.97456
9.39326e-04 0.00000
6662.33384
-6401.24550 8461.91272
==> I thought IDLEFT will be a 4x4 matrix. The outcome is not right.
[6] DISP IDRIGHT
-368.27392
-692.51845
0.00000
0.00000
[7] COMP SOL = INV(IDLEFT)*IDRIGHT
Can't Find Match for INV(RECTANGULAR(REAL)). Closest Match is INV(MATRIX(REAL))
## SX27. Illegal Combination of Data Types for Operation
>>>>P SOL = INV(IDLEFT)<<<<
Furthermore, if there is a variable, whenever I try to re-declare it shows
## SX1. Identifier A is Already in use as a(n) RECTANGULAR(REAL)
How do I release it and change it to a new type?
I tried RELEASE, but had no success.