Question: for loop and matrix arithmetic

i have two questions here 1st how to do for llop and save the results in array or vector like : > for i to 5 do f[i] := 5.*i end do; the 2nd question is how to take the square root of each element of a give matrix like: A:=Matrix(9,9,9) how to take sqrt of elements to make it (9,9,3) ,and if i have two matrices A(9,9) and another one B(9,9), how to divide each element of A to its corresponding value in B???? i know maybe they are easy questions ,but iam just beginner .
Please Wait...