Question: How do I generate a 2D array of equations from 2 lists / sets of expressions?

I am in the process fo creating 2 sets of multivariable expressions and I need to create pairwise equations from these sets.

L={L1(a_1 .. a_n), L2(a1, .., an) .... }

R={R1(a_1 .. a_n), R2(a1, .., an) .... }

I need to create the array:

M=Array(1..(2c)!, 1..2^c) where the elements are:

L[1] = R[1],   L[1] = R[2],   L[1] = R[3] ...
L[2] = R[1],   L[2] = R[2],   L[2] = R[3] ...
L[3] = R[1], ...


I then need to pull out particular elements (equtions M[1,1], M[7,2], etc) from the array and plug in a lot of values for the variables of that equation

for a[1] from 1 to 10 do
   for a[2] from 1 to a[1] do
       for a[3] from 1 to a[2] do
if Equation holds (store the inputs somewhere)
end do
end do
end do


I last used Maple about 5 years and have since forgotten a lot, so any and all help is greatly appreciated.
Thanks, Ben

Please Wait...