Question: How to use multiple variables in a repetition statement

September 28 2011 Lockoman 5



 I'm new to maple and I'm having some difficulties with coding.

I'll explain the problem

I have 2 vectors, a1 and a2, and I want to make a new set of vectors R(n,m) where R(n,m) = n*a1+m*a2 for n and m from 1 to 100 (as an example). This will create n*m vectors (in this case 10000) that will be marked as R(0,0), R(1,0), R(0,1), R(1,1), R(2,1), ...

It seems as though this would be simple but I haven't found a way to get the repetition statement ( commands to work with multiple variables.

Any help would be greatly appreciated!


Please Wait...