Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'ParallelTable strangeness' topicStudent Support Forum > General > "ParallelTable strangeness"

Next Comment >Help | Reply To Topic
Author Comment/Response
Simon
07/26/11 5:03pm

This works fine:

f[n_?EvenQ] := n/2
f[n_?OddQ] := 3 n + 1

ListPlot[Table[Length[NestWhileList[f, init, # > 1 &]], {init,10000}]]

however, when I replace Table by ParallelTable, I obtain

{1,2,2,2,2,2}

I just wonder why?

URL: ,

Subject (listing for 'ParallelTable strangeness')
Author Date Posted
ParallelTable strangeness Simon 07/26/11 5:03pm
Re: ParallelTable strangeness yehuda ben-s... 07/27/11 7:31pm
Re: ParallelTable strangeness Simon 07/28/11 11:37am
Re: Re: ParallelTable strangeness Patrick 08/23/11 12:09pm
Next Comment >Help | Reply To Topic