Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Systat 11 matrix question

1 view
Skip to first unread message

rl...@holycross.edu

unread,
Aug 10, 2007, 10:29:34 AM8/10/07
to richa...@gmail.com
I have the following Systat 11 command file, that creates and attempts
to multiply two matrices (b is the inverse of a):

format 4
MATRIX
MAT a = [,
13.358 13.748 1.951 1.373 2.231;,
13.748 26.146 2.765 2.252 2.710;,
1.951 2.765 0.645 0.350 0.423;,
1.373 2.252 0.350 0.324 0.347;,
2.231 2.710 0.423 0.347 1.004;,
]
MAT b = [,
0.2061 -0.0694 -0.2395 0.0785 -0.1969;,
-0.0694 0.1234 -0.0376 -0.5517 0.0277;,
-0.2395, -0.0376 4.2219 -3.2624 -0.0181;,
0.0785 -0.5517 -3.2624 11.4610 -1.2720;,
-0.1969 0.0277 -0.0181 -1.2720 1.8068;,
]
show a
show b
MAT c = a * b
show c

When I submit this to Systat 11 it creates and displays the two
matrices with no problem but gives me a "Matrix dimensionality error"
on the MAT c = a * b. But the matrices have equal dimensions, so I
don't see why this doesn't work.

Also, multiplying a matrix by a scalar produces the same error, e.g.

matrix
mat a=[1 2 3;4 5 6]
show a
mat b=a*2

Am I missing something?

Thanks,

Rich Lent

0 new messages