Question: How to make operation on all values of a vector

I am traying to perform the followig operation:

For a giving vector A, where A=[1,3,5]  (defined as A=([1,3,5],datatype = float), calculate a vector B where:

B=[10^1,10^3,10^5].

I tried to use a for cicle to calculate B:

 

for i from 1 by 1 to 3 do  B[i] := 10^A[i] end do

 

The problem is that i dont get a Vectr B but 3 different number with the name B[1],B[2],B[3]. Just B is not defined.

 

How do i do that?

Please Wait...