Question: do function in maple

Hello everyone,

I have a great problem with maple (cause I'm a beginner)  My problem is When i write the following
for i from 1 to M do x[i]=evalf(a* cos(t[i])) end do;
I get a numbers for x[i], like t[1]=0, then x[1]=3.
until now no problem.
But when i calling x[1] in another place in the same file. i get x[1]=0.
Could any one help me.
Amr

Please Wait...