since I am new to Wolfram Mathematica I am wondering if somebody can help me with my problem. (it is simple I guess)
Basically I would like to extract the data from a function I defined in Mathematica an write this data to a output file (for instance a .dat file)
Here's my function:
w[x_]=0.00142878 Sin[3.14159 x]
Now I would like to fill the first column of the output-file with the data of
Therefore I did the following loop and to show you the results I displayed the output.
For[x = 0.0, x <= 1, x += 0.2, PutAppend[w[x], "w.dat"]]
FilePrint["w.dat"] 0. 0.0008398150100260654 0.0013588492304845074 0.0013588492304845074 0.0008398150100260655 1.7497491811730056*^-19
My question is how it is possible to modify the output of
all the results have the same number of digits and
to rewrite the result to
Thank you guys in advance!