Logistic map function doesn't work right with only 32 bits. Make it a double.