Hi Joachim,
At 01:13 PM 2/10/00 +0100, you wrote:
>
>Dear Derivers,
>
>I would like to do some symbolic calculations involving real
>6x6-matrices. In the intermediate and final results of this
>calculations, I would like to see the matrix elements in the general
>notation "a_ij" (I mean "a SUB [i,j]). Using the VECTOR function, I
>have to specify some expression involving the indices [i,j] or some
>term or variable independent of one or both indices (in which case I
>get constant symbolic entries).
>
>Is it possible to define a function DEF_MATRIX(A, N, M) which defines A
>as a nonscalar object and allocates it as a symbolic N x M matrix ?
>
>Best regards, Joachim Linn
>
>
Applying the function
DEF_MATRIX(a, n, m) := VECTOR(VECTOR(aSUBiSUBj, j, 1, m), i, 1, n)
with e.g. n=2, m=3 yields
„ a a a †
¦ 1,1 1,2 1,3 ¦
DEF_MATRIX(a, 2, 3) = ¦ ¦
¦ a a a ¦
… 2,1 2,2 2,3 ‡
Is this what you want?
Cheers, Johann
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|