Question: for loop 2 variables, 1 exspression/function

hello this is so simple, and so essentiel in mathprograms, but i cannot get it to work.

how do i run two list through a function that needs both variables.

i am gessing a "for loop" is the solution, but i dont really care if its a loop or not, just i am getting a solution to the problem.

the two list is of equal lengt.

example:

my variables

A:=[1,2,3,4,5,6,7,8,9,10]:

B:=[10,20,30,40,50,60,70,80,90,100]:

my function

C:=A*E/4*pi*B

E is a konstant, in this case E=5

Need

so i want another list object. D to contain all the results from the calculation. as a list.

so D:=[]  needs to be filled with result.

for every run/calculation it takes, one of each of the variables F.ex.

C:=1*E/4*pi*10 and insert into the list D,

then C:=2*E/4*pi*20 and insert into the list D

then C:=3*E/4*pi*30 and insert into the list D.

and so on.

 

thx in advance

 

Please Wait...