11.14 Sample ‘bifurcation

Function bifurcation draw Bifurcation diagram for multiple stationary points of the map (like logistic map).

MGL code:

subplot 1 1 0 '<_':title 'Bifurcation sample'
ranges 0 4 0 1:axis
bifurcation 0.005 'x*y*(1-y)' 'r'

C++ code:

void smgl_bifurcation(mglGraph *gr)
{
	gr->SubPlot(1,1,0,"<_");
	if(big!=3)	gr->Title("Bifurcation sample");
	gr->SetRanges(0,4,0,1);	gr->Axis();
	gr->Bifurcation(0.005,"x*y*(1-y)","r");
}

Sample bifurcation