Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'problem with for' topicStudent Support Forum > General > "problem with for"

Next Comment >Help | Reply To Topic
Author Comment/Response
ello
12/25/10 10:33am

hello,
I'd like to make a program that give me one list,

Here is what I have written :

For[j = 0, j < 101, j++;
Print[Insert[{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0}, Mean[
Table[If[RandomReal[NormalDistribution[10, 2]] > 9, 1, 0], {n}]],
j]]]


I would like to find the value of Mean (.....) in one list, but it dosen't work...
Could you help me please ?
Thanks

URL: ,

Subject (listing for 'problem with for')
Author Date Posted
problem with for ello 12/25/10 10:33am
Re: problem with for jason biggs 12/28/10 11:03am
Next Comment >Help | Reply To Topic