| Author |
Comment/Response |
Javier
|
10/22/12 12:35pm
Hello, I am not an experienced user in mathematica so maybe the answer to my question is ovbious, but I cannot find it.
I define a test function:
test[x_, y_] := x + y;
Now, I want to make several lists (one for each x value) (x=0.1 to 0.8 in steps of 0.1)with the values of the test function for each y (y=0 to 3 in steps of 1) and then save each list as a function of the x value, so I write this:
For[i = 1, i < 9, i++, Clear[TEST_i, TTEST_i];
TEST_i = Table[TTEST_i[j, j], {j, 0, 3}];
Do[TTEST_i[n, n] = {n , test[0.i, n ]}, {n, 0, 3}];
TEST_i >>> TESTT_i.dat]
The problem is that I cannot give the name of the list and the table nor the name of the archive where I want to save each list as a function of i. I guess that is not even correct to give the x argument to the test function as 0.i but I do not know how to do this in mathematica.
Thank you very much in advance for your answer
URL: , |
|