Simplified and documented formula for logistic map in the demo.