MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Problem with a diagram

One thing I don't understand is why users so often put an extensive
calculation inside a plot statement, and then if it goes wrong they never
think of taking it out and looking at it.

In this case you could just use Evaluate on the first argument in the
ListPlot. But why not use...

plotpoints = 
   Transpose[{Table[alpha, {129}], 
     NestList[f, Nest[f, 0.5, 500], 128]}], {alpha, 0, 0.75, 0.001}], 

Now you can see that you obtain a very long list of points suitable for
plotting. Then, make the plot with the pre-computed points.

ListPlot[plotpoints, PlotStyle -> PointSize[0.001], Axes -> False, 
 Frame -> True]

Among other advantages, if you wanted to change the PlotStyle or other
aspects of the plot, you wouldn't have to recomputed all the points each

David Park
djmpark at  

From: Screech [mailto:dildovpizdo at] 

I am constructing a bifurcation diagram for interval 0.15 <= alpha <= 0.75
but it always go into loop and can't find an error. I used word alpha for
greek symbol.

recursive equation is: 
In[1]:= f[x_]:=(1-alpha)x+((alpha*0.8)/0.25)-((alpha*ArcTan[4x])/0.25) 
In[2]:= f[x]

I used:

             Table [alpha, {129}],
             NestList[f, Nest[f,0.5,500],128]

Can anyone help me please?

  • Prev by Date: Re: The side-effects of mixing TraditionalForm inside expressions.
  • Next by Date: change $UserBaseDirectory ?
  • Previous by thread: Problem with a diagram
  • Next by thread: Re: Problem with a diagram