For loop outputs to a list
- To: mathgroup at smc.vnet.net
- Subject: [mg112876] For loop outputs to a list
- From: matthew <mattypang at gmail.com>
- Date: Mon, 4 Oct 2010 06:07:33 -0400 (EDT)
Hello, I'm a bit rubbish at mathematica and I've tried searching this
group for help.
For[i = 0, i < 10^6, i++,
If[Abs[Re[LS2[0.004 + i*Pre]] - Re[RS[0.004 + i*Pre]]] < 10^-7 ,
Print[N[0.004 + i*Pre]]
If[0.004 + i*Pre > 0.007, Break[]]
]];
which gives me an output of:
0.00424538
0.00448576
0.00514995
0.00584308
0.00584309
0.00646176
0.00758337
How would I get these into a list or some way i can manipulate it?