#Fixed point G = function(x){c(log(x[1])+2*x[1],-log(x[2]),exp(-x[3]),(x[4]+exp(-x[4]))/2)} x = rep(0.5,4) xM = matrix(x,ncol=4) for(i in 1:20) { x = c(G(x)) xM = rbind(xM,x) } matplot(xM,type="l",ylim=c(-3,30),lty=1,lwd=2) legend("topright",c("G1","G2","G3","G4"),lty=1,col=1:4) print(xM)