Hello everyone.
I am quite new to Mathematica and I think this is a very basic question but how can I store data from a function in each step.
Suppose that I have a function which is called F and is defined as:
F[X_] := 1/2 (Cos[\[Omega]1 X] + 1);
Omega is an arbitrary number.
Now I would like to give data to F, for example X = {0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10} , and save them in a variable like G.
The most common method is using Table. Valeriu used Map (/@) above, which also works. It is best not to begin user variables with upper case to prevent conflict with reserved names.