Question: Computing a function from several elements of a data file

Hello,

 

I have a .dat file with three colluns, namely E,  a and b and N rows. The objective is to compute a function of a, b and a given value K F(a,b,K).  I would like to write a maple code that read the element in the first colum, E. If  E is lower or equal to a given value K, than we compute a term of f(a,b,K). After check the N rows, F(a,b,K) = sum(f(a,b,K)). I am new to maple, so I can`t figure out how to write this function.

 

Thanks

Please Wait...