Try a simple example about bifurcarion. The codes in MM are as follows:
Block[{x = 0.2}, For[u = 2.9, u < 3, u = u + 0.05, For[i = 0, i < 30, i++, {x1 = u x (1 - x); x = x1; if[i > 10, ListPlot[{u, x}]] }]]]
I find it does'not work. The objective is to draw a gragh like this:
The code is fine in the matlab:
But I don't know what's the problem in Mathmatica. Hope someone genius could help me. Thanks!
if
is clearly wrong, it should beIf
. $\endgroup$ – xzczd Oct 13 '19 at 15:08