First off I want to say thanks for answering my previous question.
I'm having trouble getting maple to define an array of equal size to a given value, x, and then populate it with the numbers 0 to x. Say x was five, I would need Maple to generate [0,1,2,3,4,5]. Lastly, I need to be able to use each member of the final element individually, so I'm not even sure if I'm having Maple do this in the right manner.
So far I've tried:
m := proc (n) options operator, arrow; array(1 .. n) end proc; for i to n do m[i] := i end do
and all I get is:
Error, final value in for loop must be numeric or character.
If anyone has any advice, I'd love to hear it.