ok first of im pretty new to maple, but i turned to it when i needed some symbolic integration and summation done, and dont have the symbolic maths package for matlab

I have a short bit of maths that seems to work well im maple, a double integral then a summation. There are two values i would like to sub into it (r and theta, polars..) to find the value of the solution at a given point. How best can i go about subbing in these values into the maple expression, and returning the answer to matlab. I can just us the evalf(subs()) expression in maple and copy it accross, but this is something i need to do thousands/millions of times in a loop.

Alternatively (how) can i use loops in maple to generate and process the data then output the lot into a file i can import into matlab to process further.

If ive been to vague anywhere, feel free to ask for more details.